spec/lib/backends/memory/json_spec.rb in picky-4.11.3 vs spec/lib/backends/memory/json_spec.rb in picky-4.12.0
- old
+ new
@@ -1,11 +1,11 @@
require 'spec_helper'
describe Picky::Backends::Memory::JSON do
context 'hash-based indexes' do
- let(:json) { described_class.new 'some/cache/path/to/file' }
+ let(:json) { described_class.new 'spec/temp/some/cache/path/to/file' }
describe 'extension' do
it 'is correct' do
json.extension.should == :json
end
@@ -35,10 +35,10 @@
end
end
describe 'to_s' do
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)'
+ json.to_s.should == 'Picky::Backends::Memory::JSON(spec/temp/some/cache/path/to/file.memory.json)'
end
end
end
end
\ No newline at end of file