spec/unit/aggregator/database_inserter_spec.rb in request-log-analyzer-1.12.9 vs spec/unit/aggregator/database_inserter_spec.rb in request-log-analyzer-1.12.10
- old
+ new
@@ -11,10 +11,10 @@
describe '#prepare' do
before(:each) do
@database = mock_database(:create_database_schema!, :drop_database_schema!, :file_format=)
@database_inserter = RequestLogAnalyzer::Aggregator::DatabaseInserter.new(@log_parser)
- RequestLogAnalyzer::Database.stub!(:new).and_return(@database)
+ RequestLogAnalyzer::Database.stub(:new).and_return(@database)
end
it 'should establish the database connection' do
RequestLogAnalyzer::Database.should_receive(:new).and_return(@database)
@database_inserter.prepare
\ No newline at end of file