Sha256: 9443aca7a54a9252bf1ed56e232e6bd6b24045ef4ebbd18d2a6a72dd25bb1b9c
Contents?: true
Size: 809 Bytes
Versions: 1
Compression:
Stored size: 809 Bytes
Contents
require 'spec_helper' describe EasyRedis::Getters do before(:each) do @user = User.create(name: "Mehmet Emin") @user.r_set("foo", true) end context 'r_get method' do it 'should set value for given attribute and returns true' do expect(@user.r_get("foo")).to eql(true) end end context 'redis_get method' do it 'should set value for given attribute and returns true' do expect(@user.redis_get("foo")).to eql(true) end end context 'r_get_attribute method' do it 'should set value for given attribute and returns true' do expect(@user.r_get_foo).to eql(true) end end context 'redis_get_attribute method' do it 'should set value for given attribute and returns true' do expect(@user.redis_get_foo).to eql(true) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_redis-1.0.0 | spec/lib/easy_redis/methods/getters_spec.rb |