Sha256: 594cf0942d3e861630cebba7b8f495d254f58860a116913d71e325f0ff4798d2
Contents?: true
Size: 741 Bytes
Versions: 4
Compression:
Stored size: 741 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe Dictionaries do it "should check if the dictionary is loaded" do dictionaries = Dictionaries.new dictionaries[:colors] dictionaries.should be_loaded(:colors) end it "should load a dictionary when called by the key" do dictionaries = 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 = Dictionaries.new dictionaries[:colors] dictionaries.should be_loaded(:colors) dictionaries.reset! dictionaries.should_not be_loaded(:colors) end end
Version data entries
4 entries across 4 versions & 2 rubygems