Permalink
Browse files

Fix one decided behavior change in unit spec. No functional changes.

  • Loading branch information...
1 parent 82ebe4d commit 01f10ca6e31f1744e06ee457d8d88608fa58cd6c @bhuga committed Jan 19, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/unit.spec
View
@@ -193,10 +193,10 @@ describe Quantity::Unit do
sqft.value.should == @foot.value**2
end
- it "defaults to the first unit when multiplying units of the same dimension" do
+ it "defaults to the second unit when multiplying units of the same dimension" do
sqft = @meter * @foot
- sqft.name.should == :'meter^2'
- sqft.value.should == 1000**2
+ sqft.name.should == :'foot^2'
+ sqft.value.should be_close 92903.04, 10**-5
end
end

0 comments on commit 01f10ca

Please sign in to comment.