test/classes_test.rb in rbplusplus-1.0.1 vs test/classes_test.rb in rbplusplus-1.0.3

- old
+ new

@@ -33,11 +33,11 @@ specify "should make functions of the class available" do # Wrapped method names default to underscore'd adder = Adder.new adder.add_integers(1,2).should == 3 - adder.add_floats(1.0, 2.0).should be_close(3.0, 0.001) + adder.add_floats(1.0, 2.0).should be_within(0.001).of(3.0) adder.add_strings("Hello", "World").should == "HelloWorld" adder.get_class_name.should == "Adder" end # Explicit self @@ -71,10 +71,10 @@ a.value2 = 15.5 a.value3 = "This is a value!" a.should_be_transformed = "TRANSFORM" a.value1.should == 10 - a.value2.should be_close(15.5, 0.01) + a.value2.should be_within(0.01).of(15.5) a.value3.should == "This is a value!" a.should_be_transformed.should == "TRANSFORM" end