mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@28a728b
This commit is contained in:
parent
3eb0d50c0b
commit
664e96b1de
42 changed files with 484 additions and 117 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue