Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check RCCounter#value too

Thanks @rbxbxdev!
  • Loading branch information...
commit 583d77a7b3c5acef069d2d6ee29ec2e1650c1bc8 1 parent e29e04d
@jc00ke jc00ke authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/maglev/reducedconflict/counter/decrement_by_spec.rb
View
7 spec/maglev/reducedconflict/counter/decrement_by_spec.rb
@@ -22,6 +22,13 @@
'block executed'
end.should == 'block executed'
end
+
+ it "doesn't decrement the value" do
+ @counter.decrement_by(10, -1) do
+ 'block executed'
+ end
+ @counter.value.should == 0
+ end
end
describe "when guard is missed" do
Please sign in to comment.
Something went wrong with that request. Please try again.