onyx-cache-money 0.2.5.5 → 0.2.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cash/accessor.rb +1 -1
- data/spec/cash/accessor_spec.rb +5 -0
- metadata +1 -1
data/lib/cash/accessor.rb
CHANGED
data/spec/cash/accessor_spec.rb
CHANGED
@@ -108,6 +108,11 @@ module Cash
|
|
108
108
|
Story.set("count", 1)
|
109
109
|
Story.add("count", 1) { "yield me" }.should == "yield me"
|
110
110
|
end
|
111
|
+
|
112
|
+
it 'yields to the block if block is given' do
|
113
|
+
Story.set("count", 1)
|
114
|
+
lambda { Story.add("count", 1) }.should_not raise_error(LocalJumpError)
|
115
|
+
end
|
111
116
|
end
|
112
117
|
|
113
118
|
describe 'when the value does not already exist' do
|