spec/refcnt_spec.rb in rubypython-0.3.1 vs spec/refcnt_spec.rb in rubypython-0.3.2

- old
+ new

@@ -25,34 +25,34 @@ after :all do RubyPython.stop end - it "should be one for a new object" do + it "is one for a new object" do pyObj = @objects.RubyPythonMockObject.new get_refcnt(pyObj).should == 1 end - it "should increase when a new reference is passed into Ruby" do + it "increases when a new reference is passed into Ruby" do pyObj = @objects.RubyPythonMockObject refcnt = get_refcnt(pyObj) pyObj2 = @objects.RubyPythonMockObject get_refcnt(pyObj).should == (refcnt + 1) end describe RubyPython::PyObject do describe "#xIncref" do - it "should increase the reference count" do + it "increases the reference count" do pyObj = @objects.RubyPythonMockObject.new refcnt = get_refcnt(pyObj) pyObj.pObject.xIncref get_refcnt(pyObj).should == refcnt + 1 end end describe "#xDecref" do - it "should decrease the reference count" do + it "decreases the reference count" do pyObj = @objects.RubyPythonMockObject.new pyObj.pObject.xIncref refcnt = get_refcnt(pyObj) pointer = pyObj.pObject.pointer pyObj.pObject.xDecref