Skip to content

Commit

Permalink
There's no reason to load anything but test for the database.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Jan 7, 2009
1 parent c770395 commit 49221b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 49221b6

Please sign in to comment.