Commit bf3faeda authored by Mehdi Lahmam's avatar Mehdi Lahmam

Use un-namespaced project issuables path helper in specs

parent 070a9161
...@@ -55,7 +55,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -55,7 +55,7 @@ shared_examples 'issuable record that supports quick actions in its description
describe "note on #{issuable_type}", :js do describe "note on #{issuable_type}", :js do
before do before do
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
end end
context 'with a note containing commands' do context 'with a note containing commands' do
...@@ -121,7 +121,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -121,7 +121,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out gitlab_sign_out
gitlab_sign_in(guest) gitlab_sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
end end
it "does not close the #{issuable_type}" do it "does not close the #{issuable_type}" do
...@@ -158,7 +158,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -158,7 +158,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out gitlab_sign_out
gitlab_sign_in(guest) gitlab_sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
end end
it "does not reopen the #{issuable_type}" do it "does not reopen the #{issuable_type}" do
...@@ -190,7 +190,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -190,7 +190,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out gitlab_sign_out
gitlab_sign_in(guest) gitlab_sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
end end
it "does not change the #{issuable_type} title" do it "does not change the #{issuable_type} title" do
...@@ -310,7 +310,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -310,7 +310,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out gitlab_sign_out
gitlab_sign_in(guest) gitlab_sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
end end
it "does not lock the #{issuable_type} discussion" do it "does not lock the #{issuable_type} discussion" do
...@@ -347,7 +347,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -347,7 +347,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out gitlab_sign_out
gitlab_sign_in(guest) gitlab_sign_in(guest)
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
end end
it "does not unlock the #{issuable_type} discussion" do it "does not unlock the #{issuable_type} discussion" do
...@@ -365,7 +365,7 @@ shared_examples 'issuable record that supports quick actions in its description ...@@ -365,7 +365,7 @@ shared_examples 'issuable record that supports quick actions in its description
it 'removes quick actions from note and explains them' do it 'removes quick actions from note and explains them' do
create(:user, username: 'bob') create(:user, username: 'bob')
visit public_send("namespace_project_#{issuable_type}_path", project.namespace, project, issuable) visit public_send("project_#{issuable_type}_path", project, issuable)
page.within('.js-main-target-form') do page.within('.js-main-target-form') do
fill_in 'note[note]', with: "Awesome!\n/assign @bob " fill_in 'note[note]', with: "Awesome!\n/assign @bob "
......
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