Permalink
Browse files

Fix existing tests.

  • Loading branch information...
1 parent c7fea67 commit 2e43b9e70832b323cc58d0367d04546117fc11a3 @arohter arohter committed Jan 13, 2014
Showing with 5 additions and 2 deletions.
  1. +2 −2 spec/client_spec.rb
  2. +3 −0 spec/support/redis_stub.rb
View
4 spec/client_spec.rb
@@ -59,11 +59,11 @@ def setup_zk
it 'should always include db' do
opts = {:zkservers => 'localhost:1234'}
client = ClientStub.new(opts)
- client.inspect.should match('<RedisFailover::Client \(db: 0,')
+ client.inspect.should match('<RedisFailover::Client .* \(db: 0,')
db = '5'
opts.merge!(:db => db)
client = ClientStub.new(opts)
- client.inspect.should match("<RedisFailover::Client \\(db: #{db},")
+ client.inspect.should match("<RedisFailover::Client .* \\(db: #{db},")
end
end
View
3 spec/support/redis_stub.rb
@@ -3,6 +3,9 @@
module RedisFailover
# Test stub for Redis.
class RedisStub
+ class InheritedError < StandardError
+ end
+
class Proxy
def initialize(queue, opts = {})
@info = {'role' => 'master'}

0 comments on commit 2e43b9e

Please sign in to comment.