Sha256: 5ca349ef446de8bddec74629e54716af3b34397f3e7880d16ece3585635f5e3f

Contents?: true

Size: 239 Bytes

Versions: 13

Compression:

Stored size: 239 Bytes

Contents

class MockRedis
  module Assertions
    private

    def assert_has_args(args, command)
      unless args.any?
        raise RuntimeError,
        "ERR wrong number of arguments for '#{command}' command"
      end
    end
      
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
redis_migrator-0.0.1 spec/mock_redis/lib/mock_redis/assertions.rb
mock_redis-0.4.1 lib/mock_redis/assertions.rb
mock_redis-0.4.0 lib/mock_redis/assertions.rb
mock_redis-0.3.0 lib/mock_redis/assertions.rb
ryansch-mock_redis-0.3.0 lib/mock_redis/assertions.rb
ryansch-mock_redis-0.2.0.2 lib/mock_redis/assertions.rb
ryansch-mock_redis-0.2.0.1 lib/mock_redis/assertions.rb
mock_redis-0.2.0 lib/mock_redis/assertions.rb
mock_redis-0.1.2 lib/mock_redis/assertions.rb
mock_redis-0.1.1 lib/mock_redis/assertions.rb
mock_redis-0.1.0 lib/mock_redis/assertions.rb
mock_redis-0.0.2 lib/mock_redis/assertions.rb
mock_redis-0.0.1 lib/mock_redis/assertions.rb