spec/cache_spec.rb in hx-0.7.4 vs spec/cache_spec.rb in hx-0.8.2

- old
+ new

@@ -10,22 +10,22 @@ @source.add_entry('bar', 'EEP') @cache = Hx::Cache.new(@source) end it "should return itself from each_entry" do - @cache.each_entry {}.should == @cache + @cache.each_entry(Hx::Path::ALL) {}.should == @cache end it "enumerates the same entries from the source" do - @cache.each_entry do |path, entry| + @cache.each_entry(Hx::Path::ALL) do |path, entry| entry.should == @source.get_entry(path) end end it "only reads the source once" do - @cache.each_entry {} + @cache.each_entry(Hx::Path::ALL) {} def @source.each_entry raise RuntimeError, "should not be called" end - @cache.each_entry {} + @cache.each_entry(Hx::Path::ALL) {} end end