1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/random/shared/rand.rb
2019-09-29 16:03:58 +02:00

9 lines
283 B
Ruby

describe :random_number, shared: true do
it "returns a Float if no max argument is passed" do
@object.send(@method).should be_kind_of(Float)
end
it "returns an Integer if an Integer argument is passed" do
@object.send(@method, 20).should be_kind_of(Integer)
end
end