From f0e2ea2859f9a51260f22b38fae1719a2eab59d9 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 27 Nov 2020 10:29:39 +0100 Subject: Clarify spec and change of behavior for Random::DEFAULT --- spec/ruby/core/random/default_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/ruby/core/random/default_spec.rb b/spec/ruby/core/random/default_spec.rb index 0333abed6b..014cc378a9 100644 --- a/spec/ruby/core/random/default_spec.rb +++ b/spec/ruby/core/random/default_spec.rb @@ -13,8 +13,8 @@ describe "Random::DEFAULT" do end ruby_version_is '3.0' do - it "returns a Random instance" do - Random::DEFAULT.should be_an_instance_of(Class) + it "refers to the Random class" do + Random::DEFAULT.should.equal?(Random) end end -- cgit v1.2.3