Add manual actions for deployment serialization

This commit is contained in:
Grzegorz Bizon 2016-11-03 13:42:22 +01:00
parent 52d333b9f4
commit 7dd6485a0f
2 changed files with 6 additions and 1 deletions

View file

@ -23,5 +23,5 @@ class DeploymentEntity < Grape::Entity
expose :user, using: API::Entities::UserBasic
expose :commit, using: CommitEntity
expose :deployable, using: BuildEntity
expose :manual_actions
expose :manual_actions, using: BuildEntity
end

View file

@ -10,6 +10,11 @@ describe EnvironmentSerializer do
let(:user) { create(:user) }
context 'when there is a single object provided' do
before do
create(:ci_build, :manual, name: 'manual1',
pipeline: deployable.pipeline)
end
let(:deployment) do
create(:deployment, deployable: deployable,
user: user)