summaryrefslogtreecommitdiff
path: root/spec/ruby/core/numeric/to_c_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/numeric/to_c_spec.rb')
-rw-r--r--spec/ruby/core/numeric/to_c_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/numeric/to_c_spec.rb b/spec/ruby/core/numeric/to_c_spec.rb
index 75245a612e..70b7a9dd0c 100644
--- a/spec/ruby/core/numeric/to_c_spec.rb
+++ b/spec/ruby/core/numeric/to_c_spec.rb
@@ -22,7 +22,7 @@ describe "Numeric#to_c" do
it "returns a Complex object" do
@numbers.each do |number|
- number.to_c.should be_an_instance_of(Complex)
+ number.to_c.should.instance_of?(Complex)
end
end
@@ -30,7 +30,7 @@ describe "Numeric#to_c" do
@numbers.each do |number|
real = number.to_c.real
if Float === number and number.nan?
- real.nan?.should be_true
+ real.nan?.should == true
else
real.should == number
end
7808a'>Merge rubygems/bundler HEADHiroshi SHIBATA 2022-08-23[rubygems/rubygems] Refactor building metadata dependenciesDavid Rodríguez 2022-07-13Merge RubyGems and Bundler masterHiroshi SHIBATA 2022-04-28Merge https://github.com/rubygems/rubygems/commit/3f7d0352e84b29d4a2d4cd93b31...Hiroshi SHIBATA 2022-01-19Merge rubygems/rubygems HEAD.Hiroshi SHIBATA 2021-05-11Sync bundler & rubygemsDavid Rodríguez 2021-03-08Sync latest development version of bundler & rubygemsDavid Rodríguez 2020-12-23Merge RubyGems 3.2.3 and Bundler 2.2.3Hiroshi SHIBATA 2020-12-15Prepare to release rubygems-3.2.1 and bundler-2.2.1Hiroshi SHIBATA 2020-10-15Merge bundler-2.2.0.rc.2Hiroshi SHIBATA 2020-05-13Update the bundler version with master branchHiroshi SHIBATA 2019-08-30Add guard as same as `==`Kazuhiro NISHIYAMA 2019-04-14Merge Bundler 2.1.0.pre.1 as developed version from upstream.hsbt 2018-11-02Added bundler as default gems. Revisit [Feature #12733]hsbt 2017-12-22Postponing the Bundler merge.hsbt 2017-11-01Update bundled bundler to 1.16.0.hsbt