summaryrefslogtreecommitdiff
path: root/spec/ruby/core/float/nan_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/float/nan_spec.rb')
-rw-r--r--spec/ruby/core/float/nan_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/float/nan_spec.rb b/spec/ruby/core/float/nan_spec.rb
index d09d25153c..c1043ef21b 100644
--- a/spec/ruby/core/float/nan_spec.rb
+++ b/spec/ruby/core/float/nan_spec.rb
@@ -2,8 +2,8 @@ require_relative '../../spec_helper'
describe "Float#nan?" do
it "returns true if self is not a valid IEEE floating-point number" do
- 0.0.nan?.should == false
- -1.5.nan?.should == false
- nan_value.nan?.should == true
+ 0.0.should_not.nan?
+ -1.5.should_not.nan?
+ nan_value.should.nan?
end
end