spec/supernova/solr_indexer_spec.rb in supernova-0.6.2 vs spec/supernova/solr_indexer_spec.rb in supernova-0.6.3
- old
+ new
@@ -499,10 +499,10 @@
indexer.write_to_file(to_index.merge(:text => nil))
end
it "separates the first and the second line" do
file_stub.should_receive(:puts).with("\{")
- file_stub.should_receive(:print).with(/\"add\":{\"doc\"/)
+ file_stub.should_receive(:print).with(/\"add\":\{\"doc\"/)
file_stub.should_receive(:print).with(%(,\n"add":{"doc":{"id":2}}))
indexer.write_to_file(to_index)
indexer.write_to_file({:id => 2})
end
end