Sha256: 8a59b1b95093f9c4ef98a9b860471777a6273080a81e9aa9e5ea887ca37e14dc

Contents?: true

Size: 602 Bytes

Versions: 3

Compression:

Stored size: 602 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::Key).should == "constant"
  end

  describe "Include module" do
    it "define redis_key method" do
      defined?(User.redis_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

3 entries across 3 versions & 1 rubygems

Version Path
redisable-0.2.0 spec/redisable_spec.rb
redisable-0.1.1 spec/redisable_spec.rb
redisable-0.1.0 spec/redisable_spec.rb