Commit c7f23e25 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Fix close_reopen_report_toggle_spec.rb path helpers rubocop offense

parent 78dd2f05
...@@ -52,7 +52,7 @@ describe 'Issuables Close/Reopen/Report toggle', :feature do ...@@ -52,7 +52,7 @@ describe 'Issuables Close/Reopen/Report toggle', :feature do
context 'when user has permission to update', :js do context 'when user has permission to update', :js do
before do before do
visit namespace_project_issue_path(project.namespace, project, issuable) visit project_issue_path(project, issuable)
end end
it_behaves_like 'an issuable close/reopen/report toggle' it_behaves_like 'an issuable close/reopen/report toggle'
...@@ -65,7 +65,7 @@ describe 'Issuables Close/Reopen/Report toggle', :feature do ...@@ -65,7 +65,7 @@ describe 'Issuables Close/Reopen/Report toggle', :feature do
before do before do
cant_project.add_guest(user) cant_project.add_guest(user)
visit namespace_project_issue_path(cant_project.namespace, cant_project, cant_issuable) visit project_issue_path(cant_project, cant_issuable)
end end
it 'only shows the `Report abuse` and `New issue` buttons' do it 'only shows the `Report abuse` and `New issue` buttons' do
...@@ -89,7 +89,7 @@ describe 'Issuables Close/Reopen/Report toggle', :feature do ...@@ -89,7 +89,7 @@ describe 'Issuables Close/Reopen/Report toggle', :feature do
context 'when user has permission to update', :js do context 'when user has permission to update', :js do
before do before do
visit namespace_project_merge_request_path(project.namespace, project, issuable) visit project_merge_request_path(project, issuable)
end end
it_behaves_like 'an issuable close/reopen/report toggle' it_behaves_like 'an issuable close/reopen/report toggle'
...@@ -102,7 +102,7 @@ describe 'Issuables Close/Reopen/Report toggle', :feature do ...@@ -102,7 +102,7 @@ describe 'Issuables Close/Reopen/Report toggle', :feature do
before do before do
cant_project.add_reporter(user) cant_project.add_reporter(user)
visit namespace_project_merge_request_path(cant_project.namespace, cant_project, cant_issuable) visit project_merge_request_path(cant_project, cant_issuable)
end end
it 'only shows a `Report abuse` button' do it 'only shows a `Report abuse` button' do
......
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