onyx-cache-money 0.2.5.5 → 0.2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|