diff options
author | Gosia Ksionek <mksionek@gitlab.com> | 2019-08-06 00:15:00 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-08-06 00:15:00 +0300 |
commit | 6c5e9480130308abf9458f1ac58e25695c5ce2ea (patch) | |
tree | 12734828967ba9637d7f87cff3097a4e48cd1b30 /spec/serializers/analytics_issue_serializer_spec.rb | |
parent | 1dfbb27f6e8d01023564eededff2a0ba1a04badc (diff) |
Fix error on project name
Add project path to sql query to build proper path
Diffstat (limited to 'spec/serializers/analytics_issue_serializer_spec.rb')
-rw-r--r-- | spec/serializers/analytics_issue_serializer_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/serializers/analytics_issue_serializer_spec.rb b/spec/serializers/analytics_issue_serializer_spec.rb index c9ffe1c5dad..9cb2ce13d12 100644 --- a/spec/serializers/analytics_issue_serializer_spec.rb +++ b/spec/serializers/analytics_issue_serializer_spec.rb @@ -8,7 +8,7 @@ describe AnalyticsIssueSerializer do end let(:user) { create(:user) } - let(:project) { create(:project) } + let(:project) { create(:project, name: 'my project') } let(:resource) do { total_time: "172802.724419", @@ -17,8 +17,8 @@ describe AnalyticsIssueSerializer do id: "1", created_at: "2016-11-12 15:04:02.948604", author: user, - name: project.name, - path: project.namespace + project_path: project.path, + namespace_path: project.namespace.route.path } end |