1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-10-26 20:53:01 +02:00
parent 3eb0d50c0b
commit 664e96b1de
42 changed files with 484 additions and 117 deletions

View file

@ -4,7 +4,6 @@ require_relative 'shared/rand'
describe "Random.rand" do
it_behaves_like :random_number, :rand, Random.new
it_behaves_like :random_number, :random_number, Random.new
it_behaves_like :random_number, :rand, Random
it "returns a Float >= 0 if no max argument is passed" do
@ -218,9 +217,3 @@ describe "Random#rand with Range" do
end.should raise_error(ArgumentError)
end
end
ruby_version_is "2.6" do
describe "Random.random_number" do
it_behaves_like :random_number, :random_number, Random
end
end