summaryrefslogtreecommitdiff
path: root/spec/factories/environments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/environments.rb')
-rw-r--r--spec/factories/environments.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/factories/environments.rb b/spec/factories/environments.rb
index 9d9e3d693b8..74100f0002f 100644
--- a/spec/factories/environments.rb
+++ b/spec/factories/environments.rb
@@ -7,7 +7,7 @@ FactoryBot.define do
trait :with_review_app do |environment|
transient do
- ref 'master'
+ ref "master"
end
# At this point `review app` is an ephemeral concept related to
@@ -22,16 +22,16 @@ FactoryBot.define do
pipeline: pipeline)
deployment = create(:deployment,
- :success,
- environment: environment,
- project: environment.project,
- deployable: deployable,
- ref: evaluator.ref,
- sha: environment.project.commit(evaluator.ref).id)
+ :success,
+ environment: environment,
+ project: environment.project,
+ deployable: deployable,
+ ref: evaluator.ref,
+ sha: environment.project.commit(evaluator.ref).id)
teardown_build = create(:ci_build, :manual,
- name: "#{environment.name}:teardown",
- pipeline: pipeline)
+ name: "#{environment.name}:teardown",
+ pipeline: pipeline)
deployment.update_column(:on_stop, teardown_build.name)
environment.update_attribute(:deployments, [deployment])
@@ -39,8 +39,8 @@ FactoryBot.define do
end
trait :non_playable do
- status 'created'
- self.when 'manual'
+ status "created"
+ self.when "manual"
end
end
end