summaryrefslogtreecommitdiff
path: root/spec/ruby/core/float/shared/arg.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/float/shared/arg.rb')
-rw-r--r--spec/ruby/core/float/shared/arg.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/float/shared/arg.rb b/spec/ruby/core/float/shared/arg.rb
index 136cf19ec8..de0024313d 100644
--- a/spec/ruby/core/float/shared/arg.rb
+++ b/spec/ruby/core/float/shared/arg.rb
@@ -1,12 +1,12 @@
describe :float_arg, shared: true do
it "returns NaN if NaN" do
f = nan_value
- f.send(@method).nan?.should be_true
+ f.send(@method).nan?.should == true
end
it "returns self if NaN" do
f = nan_value
- f.send(@method).should equal(f)
+ f.send(@method).should.equal?(f)
end
it "returns 0 if positive" do