Sha256: e146dad80be95cefc8ee736eaa3da0eff75c393286b638350bf9b1de6bba7639

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

require 'spec_helper'

module FakeRedis
  describe "ConnectionMethods" do

    before(:each) do
      @client = Redis.new
    end

  if fakeredis?
    it "should authenticate to the server" do
      @client.auth("pass").should be == "OK"
    end

    it "should not error with shutdown" do
      lambda { @client.shutdown }.should_not raise_error
    end

    it "should not error with quit" do
      lambda { @client.quit }.should_not raise_error
    end
  end

    it "should echo the given string" do
      @client.echo("something").should be == "something"
    end

    it "should ping the server" do
      @client.ping.should be == "PONG"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fakeredis-0.3.3 spec/connection_spec.rb