Sha256: bd1202db69aeb1bfa12e87a4139536ca09250c6aeb5f85e7a00e2b881ea35a46
Contents?: true
Size: 529 Bytes
Versions: 26
Compression:
Stored size: 529 Bytes
Contents
require File.expand_path("../../spec_helper", __FILE__) describe "Friendly::Cache" do describe "getting a cache object for :id" do before do @cache = Friendly::Cache.cache_for(stub, [:id], {}) end it "instantiates a Cache::ByID" do @cache.should be_instance_of(Friendly::Cache::ByID) end end describe "for other fields" do it "raises NotSupported" do lambda { Friendly::Cache.cache_for(stub, [:asdf], {}) }.should raise_error(Friendly::NotSupported) end end end
Version data entries
26 entries across 26 versions & 7 rubygems