Sha256: 34775a604df29316dc7f44369bead392dd9a9276d5bac44fa71e0ce104414c83
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
# encoding: utf-8 require_relative "../../../lib/rango/ext/random" describe "Array#random" do before(:each) do @array = (1..1000).to_a end it "should returns random item *from array*" do @array.should include(@array.random) end it "should returns *random* item from array" do @array.random.should_not eql(@array.random) end end describe "Range#random" do before(:each) do @range = (1..1000) end it "should returns random item *from range*" do @range.should include(@range.random) end it "should returns *random* item from range" do @range.random.should_not eql(@range.random) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rango-0.0.4 | spec/rango/ext/random_spec.rb |