diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-21 16:47:20 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-21 16:47:43 +0300 |
commit | d549a9655803a5e8b90849fd4e29a6805719af3e (patch) | |
tree | 8ac50e6bfc255d81495dc5373d2cf6124a74d496 /app/serializers | |
parent | c8b16068be28699da42e1d19a02dc913071919ac (diff) |
Add missing specs for new pipeline related entities
[ci skip]
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/pipeline_action_entity.rb | 2 | ||||
-rw-r--r-- | app/serializers/pipeline_artifact_entity.rb | 2 | ||||
-rw-r--r-- | app/serializers/status_entity.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/serializers/pipeline_action_entity.rb b/app/serializers/pipeline_action_entity.rb index 475b5a55316..8ed4091b139 100644 --- a/app/serializers/pipeline_action_entity.rb +++ b/app/serializers/pipeline_action_entity.rb @@ -5,7 +5,7 @@ class PipelineActionEntity < Grape::Entity build.name.humanize end - expose :url do |build| + expose :path do |build| play_namespace_project_build_path( build.project.namespace, build.project, diff --git a/app/serializers/pipeline_artifact_entity.rb b/app/serializers/pipeline_artifact_entity.rb index 9e9f245a6f9..96f90ff9042 100644 --- a/app/serializers/pipeline_artifact_entity.rb +++ b/app/serializers/pipeline_artifact_entity.rb @@ -5,7 +5,7 @@ class PipelineArtifactEntity < Grape::Entity build.name end - expose :url do |build| + expose :path do |build| download_namespace_project_build_artifacts_path( build.project.namespace, build.project, diff --git a/app/serializers/status_entity.rb b/app/serializers/status_entity.rb index 261faa67527..47066bebfb1 100644 --- a/app/serializers/status_entity.rb +++ b/app/serializers/status_entity.rb @@ -1,7 +1,7 @@ class StatusEntity < Grape::Entity include RequestAwareEntity - expose :icon, :text, :label + expose :icon, :text, :label, :group expose :has_details?, as: :has_details expose :details_path |