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-11-03 15:42:22 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-03 15:43:27 +0300
commit7dd6485a0fd7fc264f86f389da3ab846c62e8724 (patch)
tree1eea77c1b421655e3ec5d6d85f49eecbdb650214 /spec/serializers
parent52d333b9f4793ca677b938317f4c8e480b835284 (diff)
Add manual actions for deployment serialization
Diffstat (limited to 'spec/serializers')
-rw-r--r--spec/serializers/environment_serializer_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/serializers/environment_serializer_spec.rb b/spec/serializers/environment_serializer_spec.rb
index f7de6c450ab..2c94a076aba 100644
--- a/spec/serializers/environment_serializer_spec.rb
+++ b/spec/serializers/environment_serializer_spec.rb
@@ -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)