Commit 7dd6485a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add manual actions for deployment serialization

parent 52d333b9
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment