spec/database_inserter_spec.rb in wvanbergen-request-log-analyzer-1.0.2 vs spec/database_inserter_spec.rb in wvanbergen-request-log-analyzer-1.0.3

- old
+ new

@@ -20,9 +20,14 @@ ActiveRecord::Migration.should_receive(:create_table).with("warnings") ActiveRecord::Migration.should_receive(:create_table).with("requests") ActiveRecord::Migration.should_receive(:create_table).with("first_lines") ActiveRecord::Migration.should_receive(:create_table).with("test_lines") ActiveRecord::Migration.should_receive(:create_table).with("last_lines") + + ActiveRecord::Migration.should_receive(:add_index).with("first_lines", [:request_id]) + ActiveRecord::Migration.should_receive(:add_index).with("test_lines", [:request_id]) + ActiveRecord::Migration.should_receive(:add_index).with("last_lines", [:request_id]) + @database_inserter.prepare end it "should create a default Request class" do @database_inserter.prepare