spec/dictionaries_spec.rb in forgery-0.2.2 vs spec/dictionaries_spec.rb in forgery-0.3.0

- old
+ new

@@ -1,18 +1,18 @@ require File.dirname(__FILE__) + '/spec_helper' -describe Dictionaries do +describe Forgery::Dictionaries do it "should check if the dictionary is loaded" do - dictionaries = Dictionaries.new + dictionaries = Forgery::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 = Forgery::Dictionaries.new dictionaries.reset! dictionaries.should_not be_loaded(:colors) @@ -20,10 +20,10 @@ dictionaries.should be_loaded(:colors) end it "should clear the loaded dictionaries when calling reset!" do - dictionaries = Dictionaries.new + dictionaries = Forgery::Dictionaries.new dictionaries[:colors] dictionaries.should be_loaded(:colors)