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