spec/server_spec.rb in sunspot_solr-2.0.0 vs spec/server_spec.rb in sunspot_solr-2.1.0
- old
+ new
@@ -64,11 +64,11 @@
@server.log_level = 'info'
@server.log_file = 'log/sunspot-development.log'
Tempfile.should_receive(:new).with('logging.properties').and_return(@tempfile = StringIO.new)
@tempfile.should_receive(:flush)
@tempfile.should_receive(:close)
- @tempfile.stub!(:path).and_return('/tmp/logging.properties.12345')
- @server.stub!(:exec)
+ @tempfile.stub(:path).and_return('/tmp/logging.properties.12345')
+ @server.stub(:exec)
end
it 'runs Solr with logging properties file' do
@server.should_receive(:exec).with(%r(-Djava\.util\.logging\.config\.file=/tmp/logging\.properties\.12345))
@server.run