spec/lib/index/files_spec.rb in picky-1.2.3 vs spec/lib/index/files_spec.rb in picky-1.2.4
- old
+ new
@@ -62,37 +62,37 @@
end
describe "load_index" do
it "uses the right file" do
Yajl::Parser.stub! :parse
- File.should_receive(:open).once.with 'some/search/root/index/test/some_index/some_category_some_name_index.json', 'r'
+ File.should_receive(:open).once.with 'spec/test_directory/index/test/some_index/some_category_some_name_index.json', 'r'
@files.load_index
end
end
describe "load_weights" do
it "uses the right file" do
Yajl::Parser.stub! :parse
- File.should_receive(:open).once.with 'some/search/root/index/test/some_index/some_category_some_name_weights.json', 'r'
+ File.should_receive(:open).once.with 'spec/test_directory/index/test/some_index/some_category_some_name_weights.json', 'r'
@files.load_weights
end
end
describe "load_similarity" do
it "uses the right file" do
Marshal.stub! :load
- File.should_receive(:open).once.with 'some/search/root/index/test/some_index/some_category_some_name_similarity.dump', 'r:binary'
+ File.should_receive(:open).once.with 'spec/test_directory/index/test/some_index/some_category_some_name_similarity.dump', 'r:binary'
@files.load_similarity
end
end
describe "load_configuration" do
it "uses the right file" do
Yajl::Parser.stub! :parse
- File.should_receive(:open).once.with 'some/search/root/index/test/some_index/some_category_some_name_configuration.json', 'r'
+ File.should_receive(:open).once.with 'spec/test_directory/index/test/some_index/some_category_some_name_configuration.json', 'r'
@files.load_configuration
end
end
end
\ No newline at end of file