diff options
Diffstat (limited to 'spec/serializers/environment_serializer_spec.rb')
-rw-r--r-- | spec/serializers/environment_serializer_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/serializers/environment_serializer_spec.rb b/spec/serializers/environment_serializer_spec.rb index 01d1e47b5bb..c85727a08d8 100644 --- a/spec/serializers/environment_serializer_spec.rb +++ b/spec/serializers/environment_serializer_spec.rb @@ -262,8 +262,9 @@ RSpec.describe EnvironmentSerializer do def create_environment_with_associations(project) create(:environment, project: project).tap do |environment| create(:ci_pipeline, project: project).tap do |pipeline| - create(:ci_build, :manual, project: project, pipeline: pipeline, name: 'stop-action', - environment: environment.name) + create( + :ci_build, :manual, project: project, pipeline: pipeline, name: 'stop-action', environment: environment.name + ) create(:ci_build, :scheduled, project: project, pipeline: pipeline, environment: environment.name).tap do |scheduled_build| |