Permalink
Browse files

There's no reason to load anything but test for the database.yml

  • Loading branch information...
1 parent c770395 commit 49221b6a6c66b6e1c7d0ce7f21072f1574727793 @jyurek jyurek committed Jan 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/helper.rb
View
2 test/helper.rb
@@ -27,7 +27,7 @@
FIXTURES_DIR = File.join(File.dirname(__FILE__), "fixtures")
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
-ActiveRecord::Base.establish_connection(config[ENV['RAILS_ENV'] || 'test'])
+ActiveRecord::Base.establish_connection(config['test'])
def rebuild_model options = {}
ActiveRecord::Base.connection.create_table :dummies, :force => true do |table|

0 comments on commit 49221b6

Please sign in to comment.