diff options
Diffstat (limited to 'vendor/plugins/globalize2/test/test_helper.rb')
| -rw-r--r-- | vendor/plugins/globalize2/test/test_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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' | |||
| 7 | $LOAD_PATH << File.expand_path( File.dirname(__FILE__) + '/../lib' ) | 7 | $LOAD_PATH << File.expand_path( File.dirname(__FILE__) + '/../lib' ) |
| 8 | 8 | ||
| 9 | class ActiveSupport::TestCase | 9 | class ActiveSupport::TestCase |
| 10 | def reset_db!( schema = 'schema' ) | 10 | def reset_db!( schema_path ) |
| 11 | ::ActiveRecord::Migration.verbose = false # Quiet down the migration engine | 11 | ::ActiveRecord::Migration.verbose = false # Quiet down the migration engine |
| 12 | ::ActiveRecord::Base.establish_connection({ | 12 | ::ActiveRecord::Base.establish_connection({ |
| 13 | :adapter => 'sqlite3', | 13 | :adapter => 'sqlite3', |
| 14 | :dbfile => ':memory:' | 14 | :dbfile => ':memory:' |
| 15 | }) | 15 | }) |
| 16 | ::ActiveRecord::Base.silence do | 16 | ::ActiveRecord::Base.silence do |
| 17 | load File.expand_path(File.join(File.dirname(__FILE__), 'data', schema + '.rb')) | 17 | load schema_path |
| 18 | end | 18 | end |
| 19 | end | 19 | end |
| 20 | 20 | ||
