Permalink
Browse files

Expose RCCounter#value

  • Loading branch information...
1 parent edf67e7 commit 37a6cdcb31f504b1eb2290d6e148d28cd877ad9d @jc00ke jc00ke committed Oct 21, 2012
Showing with 12 additions and 0 deletions.
  1. +2 −0 lib/ruby/1.8/maglev/rccounter.rb
  2. +10 −0 spec/maglev/reducedconflict/counter/value_spec.rb
@@ -16,4 +16,6 @@
class RCCounter
class_primitive 'new', 'new'
+
+ primitive 'value', 'value'
end
@@ -0,0 +1,10 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'maglev/rccounter'
+
+describe "RCCounter#value" do
+ describe "new instance" do
+ it "returns 0" do
+ RCCounter.new.value.should == 0
+ end
+ end
+end

0 comments on commit 37a6cdc

Please sign in to comment.