summaryrefslogtreecommitdiff
path: root/spec/ruby/core/float/shared/abs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/float/shared/abs.rb')
-rw-r--r--spec/ruby/core/float/shared/abs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/float/shared/abs.rb b/spec/ruby/core/float/shared/abs.rb
index c59198bfe2..ab21480e24 100644
--- a/spec/ruby/core/float/shared/abs.rb
+++ b/spec/ruby/core/float/shared/abs.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
describe :float_abs, shared: true do
it "returns the absolute value" do
@@ -16,6 +16,6 @@ describe :float_abs, shared: true do
end
it "returns NaN if NaN" do
- nan_value.send(@method).nan?.should be_true
+ nan_value.send(@method).nan?.should == true
end
end