diff options
| author | hukl <contact@smyck.org> | 2009-02-25 22:37:22 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-25 22:37:22 +0100 |
| commit | f4c73763e5b3d65f3377fb1238a94122a1c272a4 (patch) | |
| tree | 8f6b276f9432e31ae0fe7bffe010e680081a1e0a /vendor/plugins/globalize2/test/test_helper.rb | |
| parent | 19b07ff63c626f76ad512b95ddbf16cddd2bf855 (diff) | |
updated globalize2
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 | ||
