Sha256: 2d171bae49070cf5c011668350f99cc198ce47b9903759d80c7d7cf76241f2e9
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
require 'spec_helper' describe Forgery::Dictionaries do it "should check if the dictionary is loaded" do dictionaries = Forgery::Dictionaries.new dictionaries[:colors] dictionaries.should be_loaded(:colors) end it "should load a dictionary when called by the key" do dictionaries = Forgery::Dictionaries.new dictionaries.reset! dictionaries.should_not be_loaded(:colors) dictionaries[:colors] dictionaries.should be_loaded(:colors) end it "should clear the loaded dictionaries when calling reset!" do dictionaries = Forgery::Dictionaries.new dictionaries[:colors] dictionaries.should be_loaded(:colors) dictionaries.reset! dictionaries.should_not be_loaded(:colors) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forgery-0.6.0 | spec/dictionaries_spec.rb |