BigW Consortium Gitlab

Commit f7bc7310 by Robert Speicher

Remove redundant spec

parent 4baea226
...@@ -910,12 +910,6 @@ describe Projects::IssuesController do ...@@ -910,12 +910,6 @@ describe Projects::IssuesController do
create(:discussion_note_on_issue, :system, noteable: issue, project: issue.project, note: cross_reference) create(:discussion_note_on_issue, :system, noteable: issue, project: issue.project, note: cross_reference)
end end
it 'filters notes that the user should not see' do
get :discussions, namespace_id: project.namespace, project_id: project, id: issue.iid
expect(JSON.parse(response.body).count).to eq(1)
end
it 'does not result in N+1 queries' do it 'does not result in N+1 queries' do
# Instantiate the controller variables to ensure QueryRecorder has an accurate base count # Instantiate the controller variables to ensure QueryRecorder has an accurate base count
get :discussions, namespace_id: project.namespace, project_id: project, id: issue.iid get :discussions, namespace_id: project.namespace, project_id: project, id: issue.iid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment