Sha256: eeed39b444843691aa4ddc5936d704e45534f756227561bec828f13dc11a9445
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe Forgery::Formats do it "should check if the dictionary is loaded" do formats = Forgery::Formats.new formats[:phone] formats.should be_loaded(:phone) end it "should load a dictionary when called by the key" do formats = Forgery::Formats.new formats.reset! formats.should_not be_loaded(:phone) formats[:phone] formats.should be_loaded(:phone) end it "should clear the loaded formats when calling reset!" do formats = Forgery::Formats.new formats[:phone] formats.should be_loaded(:phone) formats.reset! formats.should_not be_loaded(:phone) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forgery-0.3.0 | spec/formats_spec.rb |