test/connection.rb in ohm-2.0.0.rc1 vs test/connection.rb in ohm-2.0.0.rc2

- old
+ new

@@ -1,22 +1,16 @@ -# encoding: UTF-8 +require_relative 'helper' -require File.expand_path("./helper", File.dirname(__FILE__)) +test "model inherits Ohm.redis connection by default" do + class C < Ohm::Model + end -unless defined?(Redic::CannotConnectError) - Redic::CannotConnectError = Errno::ECONNREFUSED + assert_equal C.redis.url, Ohm.redis.url end test "model can define its own connection" do class B < Ohm::Model self.redis = Redic.new("redis://localhost:6379/1") end assert B.redis.url != Ohm.redis.url -end - -test "model inherits Ohm.redis connection by default" do - class C < Ohm::Model - end - - assert_equal C.redis.url, Ohm.redis.url end