Sha256: b0e63c02b5f9056d7598cd0d9f5df033a280b73d302151d8e111aa2f3dd8a239
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
require 'spec_helper' require 'bigdecimal' describe Forgery::Monetary do it "should return random number string" do Forgery(:monetary).money.should match(/^[\d+\.]+$/) end it "should return random number respecting min and max parameters" do BigDecimal.new(Forgery(:monetary).money({:min => 10, :max => 20})).should be_between(10, 20) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forgery-0.6.0 | spec/forgery/monetary_spec.rb |