summaryrefslogtreecommitdiff
path: root/vendor/plugins/globalize2/test/test_helper.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-25 22:37:22 +0100
committerhukl <contact@smyck.org>2009-02-25 22:37:22 +0100
commitf4c73763e5b3d65f3377fb1238a94122a1c272a4 (patch)
tree8f6b276f9432e31ae0fe7bffe010e680081a1e0a /vendor/plugins/globalize2/test/test_helper.rb
parent19b07ff63c626f76ad512b95ddbf16cddd2bf855 (diff)
updated globalize2
Diffstat (limited to 'vendor/plugins/globalize2/test/test_helper.rb')
-rw-r--r--vendor/plugins/globalize2/test/test_helper.rb4
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
9class ActiveSupport::TestCase 9class 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