spec/ratio_spec.rb in epitools-0.4.35 vs spec/ratio_spec.rb in epitools-0.4.36
- old
+ new
@@ -19,6 +19,11 @@
it "percents" do
@a.percent.should == "100.0%"
@b.percent.should == "50.0%"
end
+ it "uses the function-style wrapper" do
+ Ratio(1,2).should == Ratio[1,2]
+ Ratio(1,2).should == Ratio.new(1,2)
+ end
+
end
\ No newline at end of file