Broken master since !13265
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/28673381
1) API::Events GET /projects/:id/events when exists some events avoids N+1 queries
Failure/Error: expect(json_response[0]).to include('target_type' => 'MergeRequest', 'target_id' => merge_request2.id)
expected {"title" => nil, "project_id" => 18, "action_name" => "opened", "target_id" => 5, "target_iid" => 2, "target_ty...82c5f8673?s=80&d=identicon", "web_url" => "http://localhost/user2888"}, "author_username" => "user2888"} to include {"target_id" => 6}
Diff:
@@ -1,3 +1,13 @@
-"target_id" => 6,
+"action_name" => "opened",
+"author" => {"name"=>"John Doe2890", "username"=>"user2888", "id"=>29, "state"=>"active", "avatar_url"=>"http://www.gravatar.com/avatar/d1aa22b0de206866030b49482c5f8673?s=80&d=identicon", "web_url"=>"http://localhost/user2888"},
+"author_id" => 29,
+"author_username" => "user2888",
+"created_at" => "2017-08-08T13:33:44.000Z",
+"data" => nil,
+"project_id" => 18,
+"target_id" => 5,
+"target_iid" => 2,
+"target_title" => "Test",
"target_type" => "MergeRequest",
+"title" => nil,
# ./spec/requests/api/events_spec.rb:168:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:102:in `block (2 levels) in <top (required)>'
Finished in 24 minutes 28 seconds (files took 33.92 seconds to load)
1422 examples, 1 failure, 11 pending
Failed examples:
rspec ./spec/requests/api/events_spec.rb:154 # API::Events GET /projects/:id/events when exists some events avoids N+1 queries