diff options
Diffstat (limited to 'spec/ruby/core/float')
-rw-r--r-- | spec/ruby/core/float/comparison_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/float/round_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/float/comparison_spec.rb b/spec/ruby/core/float/comparison_spec.rb index a1ee423c24..4205d95c83 100644 --- a/spec/ruby/core/float/comparison_spec.rb +++ b/spec/ruby/core/float/comparison_spec.rb @@ -22,7 +22,7 @@ describe "Float#<=>" do (infinity_value <=> Float::MAX.to_i*2).should == 1 end - it "returns -1 when self is negative and other is Infinty" do + it "returns -1 when self is negative and other is Infinity" do (-Float::MAX.to_i*2 <=> infinity_value).should == -1 end diff --git a/spec/ruby/core/float/round_spec.rb b/spec/ruby/core/float/round_spec.rb index df113f97b1..a21173e139 100644 --- a/spec/ruby/core/float/round_spec.rb +++ b/spec/ruby/core/float/round_spec.rb @@ -30,7 +30,7 @@ describe "Float#round" do 12.345678.round(3.999).should == 12.346 end - it "returns zero when passed a negative argument with magitude greater the magitude of the whole number portion of the Float" do + it "returns zero when passed a negative argument with magnitude greater than magnitude of the whole number portion of the Float" do 0.8346268.round(-1).should eql(0) end |