diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-11-21 14:13:54 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-07-09 18:09:45 +0200 |
commit | 1de47ee373650f197c1e4c558946dd6d8149e7e5 (patch) | |
tree | 3abe7fdc7e4079f163754566a2faf7679133c1c4 /spec/routing | |
parent | 5f08830090fb6d56a14bd4aaca107b99e2b0975b (diff) | |
download | gitlab-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/routing')
-rw-r--r-- | spec/routing/environments_spec.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/routing/environments_spec.rb b/spec/routing/environments_spec.rb index aacbe300966..28b3e79c1ff 100644 --- a/spec/routing/environments_spec.rb +++ b/spec/routing/environments_spec.rb @@ -9,7 +9,7 @@ describe 'environments routing' do end let(:environments_route) do - "#{project.namespace.name}/#{project.name}/environments/" + "#{project.full_path}/environments/" end describe 'routing environment folders' do @@ -36,13 +36,12 @@ describe 'environments routing' do end def get_folder(folder) - get("#{project.namespace.name}/#{project.name}/" \ - "environments/folders/#{folder}") + get("#{project.full_path}/environments/folders/#{folder}") end def folder_action(**opts) - options = { namespace_id: project.namespace.name, - project_id: project.name } + options = { namespace_id: project.namespace.path, + project_id: project.path } ['projects/environments#folder', options.merge(opts)] end |