spec/lib/backends/memory/json_spec.rb in picky-3.5.2 vs spec/lib/backends/memory/json_spec.rb in picky-3.5.3
- old
+ new
@@ -1,9 +1,9 @@
require 'spec_helper'
describe Picky::Backends::Memory::JSON do
-
+
context 'hash-based indexes' do
let(:json) { described_class.new 'some/cache/path/to/file' }
describe 'extension' do
it 'is correct' do
@@ -19,11 +19,11 @@
describe "dump" do
it "delegates to the given hash" do
hash = stub :hash
- hash.should_receive(:dump_json).once.with "some/cache/path/to/file.memory.json"
+ json.should_receive(:dump_json).once.with hash
json.dump hash
end
end
@@ -39,7 +39,7 @@
it 'returns the cache path with the default file extension' do
json.to_s.should == 'Picky::Backends::Memory::JSON(some/cache/path/to/file.memory.json)'
end
end
end
-
+
end
\ No newline at end of file