Permalink
Browse files

Fix method definition for Cash::Mock#get_multi

- keys are supplied to get_multi as *keys not as a single array of
keys
  • Loading branch information...
1 parent 09638f0 commit 2dfa219fbec8e4303748d881ed591899342e7f0c @sideshowbandana committed Jan 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cash/mock.rb
View
@@ -57,7 +57,7 @@ def initialize
@logging = false
end
- def get_multi(keys)
+ def get_multi(*keys)
slice(*keys).collect { |k,v| [k, v.unmarshal] }.to_hash_without_nils
end

0 comments on commit 2dfa219

Please sign in to comment.