test/helper.rb in replica-1.0.1 vs test/helper.rb in replica-1.0.2
- old
+ new
@@ -18,15 +18,15 @@
ActiveRecord::Base.establish_connection('test')
load(File.dirname(__FILE__) + "/schema.rb")
class Test::Unit::TestCase
-
+
def assert_using_master_db(klass)
assert_equal('replica_test', klass.connection.instance_variable_get(:@config)[:database])
end
def assert_using_slave_db(klass)
assert_equal('replica_test_slave', klass.connection.instance_variable_get(:@config)[:database])
end
-
+
end