summaryrefslogtreecommitdiff
path: root/spec/features/merge_request
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-11-21 14:13:54 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2019-07-09 18:09:45 +0200
commit1de47ee373650f197c1e4c558946dd6d8149e7e5 (patch)
tree3abe7fdc7e4079f163754566a2faf7679133c1c4 /spec/features/merge_request
parent5f08830090fb6d56a14bd4aaca107b99e2b0975b (diff)
downloadgitlab-ce-1de47ee373650f197c1e4c558946dd6d8149e7e5.tar.gz
Use namespace#path for building urls in specs
Some of the specs were using namespace names instead of paths for building URLS. This would fail since we now build a namespace with a user's name instead of a user's username.
Diffstat (limited to 'spec/features/merge_request')
-rw-r--r--spec/features/merge_request/user_creates_merge_request_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/merge_request/user_creates_merge_request_spec.rb b/spec/features/merge_request/user_creates_merge_request_spec.rb
index d05ef2a8f12..2a70cbb2a72 100644
--- a/spec/features/merge_request/user_creates_merge_request_spec.rb
+++ b/spec/features/merge_request/user_creates_merge_request_spec.rb
@@ -78,7 +78,7 @@ describe "User creates a merge request", :js do
click_button("Submit merge request")
- expect(page).to have_content(title).and have_content("Request to merge #{user.namespace.name}:#{source_branch} into master")
+ expect(page).to have_content(title).and have_content("Request to merge #{user.namespace.path}:#{source_branch} into master")
end
end
end