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.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/float/nan_spec.rb b/spec/ruby/core/float/nan_spec.rb
index 95a61d8872..c1043ef21b 100644
--- a/spec/ruby/core/float/nan_spec.rb
+++ b/spec/ruby/core/float/nan_spec.rb
@@ -1,9 +1,9 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+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