spec/numeric_spec.rb in sugarcube-0.20.25 vs spec/numeric_spec.rb in sugarcube-1.0.0
- old
+ new
@@ -5,9 +5,19 @@
50.percent.should == 0.50
100.percent.should == 1
200.percent.should == 2.0
end
+ it "should have a #g method" do
+ 0.g.should == 0
+ 1.g.should == 9.78033
+ end
+
+ it "should have an #in_g method" do
+ 0.in_g.should == 0
+ 9.78033.in_g.should == 1
+ end
+
it "should have a #radian(s) method" do
0.radians.should == 0
1.radian.should == 1
1.5.radians.should == 1.5
end