Skip to content

Commit

Permalink
Accept Dalli 2 as a version store + spec
Browse files Browse the repository at this point in the history
  • Loading branch information
orslumen committed Sep 17, 2012
1 parent f081333 commit 8a2c31f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/record_cache/version_store.rb
Expand Up @@ -4,7 +4,7 @@ class VersionStore

def initialize(store)
[:increment, :write, :read, :read_multi, :delete].each do |method|
raise "Store #{store.inspect} must respond to #{method}" unless store.respond_to?(method)
raise "Store #{store.class.name} must respond to #{method}" unless store.respond_to?(method)
end
@store = store
end
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/version_store_spec.rb
Expand Up @@ -9,7 +9,7 @@
end

it "should only accept ActiveSupport cache stores" do
lambda { RecordCache::VersionStore.new(Object.new) }.should raise_error("Must be an ActiveSupport::Cache::Store")
lambda { RecordCache::VersionStore.new(Object.new) }.should raise_error("Store Object must respond to increment")
end

context "current" do
Expand Down

0 comments on commit 8a2c31f

Please sign in to comment.