test/connection_test.rb in ohm-0.1.0.rc4 vs test/connection_test.rb in ohm-0.1.0.rc5
- old
+ new
@@ -1,12 +1,8 @@
require File.expand_path(File.join(File.dirname(__FILE__), "test_helper"))
class ConnectionTest < Test::Unit::TestCase
- setup do
- @options = Ohm.options
- end
-
test "connects lazily" do
assert_nothing_raised do
Ohm.connect(:port => 9876)
end
@@ -30,12 +26,8 @@
conn2 = Ohm.redis
end
threads.each { |t| t.join }
- assert (conn1 != conn2)
- end
-
- teardown do
- Ohm.connect(*@options)
+ assert(conn1 != conn2)
end
end