Add manual actions for deployment serialization
This commit is contained in:
parent
52d333b9f4
commit
7dd6485a0f
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue