Sha256: 31ae1807f4375ff9c23b91d4ce2a28c530ea6dc1546eba737a6655be1d3835b9

Contents?: true

Size: 532 Bytes

Versions: 8

Compression:

Stored size: 532 Bytes

Contents

require 'spec_helper'

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

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

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

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

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

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
instructure-redis-store-1.0.0.2.instructure1 spec/redis/store/interface_spec.rb
instructure-redis-store-1.0.0.1.instructure1 spec/redis/store/interface_spec.rb
redis-store-1.0.0.1 spec/redis/store/interface_spec.rb
redis-store-1.0.0.rc1 spec/redis/store/interface_spec.rb
redis-store-1.0.0.beta5 spec/redis/store/interface_spec.rb
redis-store-1.0.0.beta4 spec/redis/store/interface_spec.rb
nono-redis-store-1.0.0 spec/redis/store/interface_spec.rb
redis-store-1.0.0.beta3 spec/redis/store/interface_spec.rb