diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-28 22:59:20 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-28 22:59:20 +0300 |
commit | 357ab10da34102499a32ad569d9b58c8d5b97d17 (patch) | |
tree | 00fd99161d55174097298604dc1222dd836f251e /spec/serializers/deploy_key_entity_spec.rb | |
parent | 0b7824d433ec5029da17114389f425f816b7be74 (diff) |
Fixed some spinach & rspec tests
Diffstat (limited to 'spec/serializers/deploy_key_entity_spec.rb')
-rw-r--r-- | spec/serializers/deploy_key_entity_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/serializers/deploy_key_entity_spec.rb b/spec/serializers/deploy_key_entity_spec.rb index cc3fb193f1b..e73fbe190ca 100644 --- a/spec/serializers/deploy_key_entity_spec.rb +++ b/spec/serializers/deploy_key_entity_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe DeployKeyEntity do + include RequestAwareEntity + let(:user) { create(:user) } let(:project) { create(:empty_project, :internal)} let(:project_private) { create(:empty_project, :private)} @@ -22,7 +24,12 @@ describe DeployKeyEntity do created_at: deploy_key.created_at, updated_at: deploy_key.updated_at, projects: [ - { id: project.id, name: project.name, full_path: project.full_path, full_name: project.full_name } + { + id: project.id, + name: project.name, + full_path: namespace_project_path(project.namespace, project), + full_name: project.full_name + } ] } |