Sha256: ec47d37ea6b1766a9cfc42f1b9c833719037603e44063fbe85dc3aa99ad6c371
Contents?: true
Size: 452 Bytes
Versions: 2
Compression:
Stored size: 452 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Range do it "should get a random number out of the range" do range = (0..9) 10.times { range.should include(range.random) } end it "should get a random string our of the range" do range = ("a".."z") 10.times { range.should include(range.random) } end it "should return nil if the maximum is less than the minimum" do ("z".."a").random.should be_nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sevenwire-forgery-0.1.0 | spec/extensions/range_spec.rb |
sevenwire-forgery-0.2.0 | spec/extensions/range_spec.rb |