Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-21 16:47:20 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-21 16:47:43 +0300
commitd549a9655803a5e8b90849fd4e29a6805719af3e (patch)
tree8ac50e6bfc255d81495dc5373d2cf6124a74d496 /app/serializers
parentc8b16068be28699da42e1d19a02dc913071919ac (diff)
Add missing specs for new pipeline related entities
[ci skip]
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/pipeline_action_entity.rb2
-rw-r--r--app/serializers/pipeline_artifact_entity.rb2
-rw-r--r--app/serializers/status_entity.rb2
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