From f4c73763e5b3d65f3377fb1238a94122a1c272a4 Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 25 Feb 2009 22:37:22 +0100 Subject: updated globalize2 --- vendor/plugins/globalize2/test/test_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/plugins/globalize2/test/test_helper.rb') diff --git a/vendor/plugins/globalize2/test/test_helper.rb b/vendor/plugins/globalize2/test/test_helper.rb index 58b047d6..956b352f 100644 --- a/vendor/plugins/globalize2/test/test_helper.rb +++ b/vendor/plugins/globalize2/test/test_helper.rb @@ -7,14 +7,14 @@ require 'mocha' $LOAD_PATH << File.expand_path( File.dirname(__FILE__) + '/../lib' ) class ActiveSupport::TestCase - def reset_db!( schema = 'schema' ) + def reset_db!( schema_path ) ::ActiveRecord::Migration.verbose = false # Quiet down the migration engine ::ActiveRecord::Base.establish_connection({ :adapter => 'sqlite3', :dbfile => ':memory:' }) ::ActiveRecord::Base.silence do - load File.expand_path(File.join(File.dirname(__FILE__), 'data', schema + '.rb')) + load schema_path end end -- cgit v1.3