ruby-changes:63770
From: Benoit <ko1@a...>
Date: Fri, 27 Nov 2020 18:30:17 +0900 (JST)
Subject: [ruby-changes:63770] f0e2ea2859 (master): Clarify spec and change of behavior for Random::DEFAULT
https://git.ruby-lang.org/ruby.git/commit/?id=f0e2ea2859 From f0e2ea2859f9a51260f22b38fae1719a2eab59d9 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Fri, 27 Nov 2020 10:29:39 +0100 Subject: Clarify spec and change of behavior for Random::DEFAULT diff --git a/spec/ruby/core/random/default_spec.rb b/spec/ruby/core/random/default_spec.rb index 0333abe..014cc37 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/random/default_spec.rb#L13 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/