test/test_helper.rb in blueprints-0.3.3 vs test/test_helper.rb in blueprints-0.3.4
- old
+ new
@@ -11,16 +11,16 @@
Dir.chdir(File.join(File.dirname(__FILE__), '..'))
ActiveRecord::Base.logger = Logger.new("debug.log")
-databases = YAML::load(IO.read("spec/db/database.yml"))
+databases = YAML::load(IO.read("spec/active_record/fixtures/database.yml"))
db_info = databases[ENV["DB"] || "test"]
ActiveRecord::Base.establish_connection(db_info)
require 'lib/blueprints'
-require 'spec/db/fruit'
-require 'spec/db/tree'
+require 'spec/active_record/fixtures/fruit'
+require 'spec/active_record/fixtures/tree'
class ActiveSupport::TestCase
- enable_blueprints :root => File.join(File.dirname(__FILE__), '..'), :prebuild => :big_cherry
-end
\ No newline at end of file
+ enable_blueprints :root => File.join(File.dirname(__FILE__), '..'), :prebuild => :big_cherry, :filename => 'spec/active_record/blueprint.rb'
+end