summaryrefslogtreecommitdiff
path: root/spec/mspec/spec/helpers/numeric_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/spec/helpers/numeric_spec.rb')
-rw-r--r--spec/mspec/spec/helpers/numeric_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/mspec/spec/helpers/numeric_spec.rb b/spec/mspec/spec/helpers/numeric_spec.rb
index 2ea56e5961..e65f3e8610 100644
--- a/spec/mspec/spec/helpers/numeric_spec.rb
+++ b/spec/mspec/spec/helpers/numeric_spec.rb
@@ -2,24 +2,24 @@ require 'spec_helper'
require 'mspec/guards'
require 'mspec/helpers'
-describe Object, "#bignum_value" do
+RSpec.describe Object, "#bignum_value" do
it "returns a value that is an instance of Bignum on any platform" do
- bignum_value.should == 0x8000_0000_0000_0000
+ expect(bignum_value).to eq(0x8000_0000_0000_0000)
end
it "returns the default value incremented by the argument" do
- bignum_value(42).should == 0x8000_0000_0000_002a
+ expect(bignum_value(42)).to eq(0x8000_0000_0000_002a)
end
end
-describe Object, "#nan_value" do
+RSpec.describe Object, "#nan_value" do
it "returns NaN" do
- nan_value.nan?.should be_true
+ expect(nan_value.nan?).to be_truthy
end
end
-describe Object, "#infinity_value" do
+RSpec.describe Object, "#infinity_value" do
it "returns Infinity" do
- infinity_value.infinite?.should == 1
+ expect(infinity_value.infinite?).to eq(1)
end
end