From 040bac5d62528cbe4ee9f2da2a8d032e99b0df28 Mon Sep 17 00:00:00 2001 From: Rich Grundy Date: Tue, 10 Jan 2012 11:31:48 +0000 Subject: [PATCH] Moved schema so it can be loaded from external apps. --- spec/test_schema.rb => lib/active_press/schema.rb | 0 spec/spec_helper.rb | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename spec/test_schema.rb => lib/active_press/schema.rb (100%) diff --git a/spec/test_schema.rb b/lib/active_press/schema.rb similarity index 100% rename from spec/test_schema.rb rename to lib/active_press/schema.rb diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cc8af02..f9b9b66 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,8 +9,8 @@ #ActiveRecord::Base.logger = Logger.new(STDOUT) ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ":memory:") ActiveRecord::Migration.verbose = false -load 'test_schema.rb' +load 'active_press/schema.rb' require 'active_press' # always load active_press after establishing connection for tests -FactoryGirl.find_definitions \ No newline at end of file +FactoryGirl.find_definitions