diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-11-21 16:13:54 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-07-09 19:09:45 +0300 |
commit | 1de47ee373650f197c1e4c558946dd6d8149e7e5 (patch) | |
tree | 3abe7fdc7e4079f163754566a2faf7679133c1c4 /spec/serializers | |
parent | 5f08830090fb6d56a14bd4aaca107b99e2b0975b (diff) |
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/serializers')
-rw-r--r-- | spec/serializers/environment_status_entity_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/serializers/environment_status_entity_spec.rb b/spec/serializers/environment_status_entity_spec.rb index f421432e8d6..cb4749f019f 100644 --- a/spec/serializers/environment_status_entity_spec.rb +++ b/spec/serializers/environment_status_entity_spec.rb @@ -70,7 +70,7 @@ describe EnvironmentStatusEntity do it 'returns metrics url' do expect(subject[:metrics_url]) - .to eq("/#{project.namespace.name}/#{project.name}/environments/#{environment.id}/deployments/#{deployment.iid}/metrics") + .to eq("/#{project.full_path}/environments/#{environment.id}/deployments/#{deployment.iid}/metrics") end end |