Sha256: 863b53a18c3c5cec4d7123d4011502a14cc8feae5dd6edfe0725de1e0391da11

Contents?: true

Size: 601 Bytes

Versions: 2

Compression:

Stored size: 601 Bytes

Contents

require 'spec_helper'

class User
  include Redisable
end

describe Redisable do
  it "autoload modules" do
    defined?(Redisable::Config).should == "constant"
    defined?(Redisable::Connection).should == "constant"
    defined?(Redisable::KVSKey).should == "constant"
  end

  describe "Include module" do
    it "define kvs_key method" do
      defined?(User.kvs_key).should == "method"
    end
    it "define redis method" do
      defined?(User.redis).should == "method"
    end
    it "define redis instance method" do
      defined?(User.new.send(:redis)).should == "method"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redisable-0.0.2 spec/redisable_spec.rb
redisable-0.0.1 spec/redisable_spec.rb