Sha256: f1986f039947c2b598ba4ef062db4386d1fb7dba787ae755f59b4c14a53a9e28

Contents?: true

Size: 665 Bytes

Versions: 18

Compression:

Stored size: 665 Bytes

Contents

require 'test_helper'

class InterfacedRedis < Redis
  include Redis::Store::Interface
end

describe Redis::Store::Interface do
  before do
    @r = InterfacedRedis.new
  end

  it "should get an element" do
    lambda { @r.get("key", :option => true) } #.wont_raise ArgumentError
  end

  it "should set an element" do
    lambda { @r.set("key", "value", :option => true) } #.wont_raise ArgumentError
  end

  it "should setnx an element" do
    lambda { @r.setnx("key", "value", :option => true) } #.wont_raise ArgumentError
  end

  it "should setex an element" do
    lambda { @r.setex("key", 1, "value", :option => true) } #.wont_raise ArgumentError
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
redis-store-1.5.0 test/redis/store/interface_test.rb
redis-store-1.4.1 test/redis/store/interface_test.rb
redis-store-1.4.0 test/redis/store/interface_test.rb
redis-store-1.3.0 test/redis/store/interface_test.rb
redis-store-1.2.0 test/redis/store/interface_test.rb
redis-store-1.2.0.pre test/redis/store/interface_test.rb
redis-store-1.1.7 test/redis/store/interface_test.rb
redis-store-1.1.6 test/redis/store/interface_test.rb
redis-store-1.1.5 test/redis/store/interface_test.rb
redis-store-1.1.4 test/redis/store/interface_test.rb
redis-store-json-3.0.0 redis-store-json/test/redis/store/interface_test.rb
redis-rack-json-1.5.2 redis-store-json/test/redis/store/interface_test.rb
redis-actionpack-json-4.0.0 redis-store-json/test/redis/store/interface_test.rb
redis-store-1.1.3 test/redis/store/interface_test.rb
redis-store-1.1.2 test/redis/store/interface_test.rb
redis-store-1.1.1 test/redis/store/interface_test.rb
redis-store-1.1.0 test/redis/store/interface_test.rb
redis-store-1.1.0.rc2 test/redis/store/interface_test.rb