summaryrefslogtreecommitdiff
path: root/spec/serializers/deployment_serializer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/deployment_serializer_spec.rb')
-rw-r--r--spec/serializers/deployment_serializer_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/serializers/deployment_serializer_spec.rb b/spec/serializers/deployment_serializer_spec.rb
index 4834f5ede3c..67fccaa3f25 100644
--- a/spec/serializers/deployment_serializer_spec.rb
+++ b/spec/serializers/deployment_serializer_spec.rb
@@ -3,9 +3,8 @@
require 'spec_helper'
describe DeploymentSerializer do
- set(:project) { create(:project, :repository) }
- set(:user) { create(:user, email: project.commit.author_email) }
-
+ let_it_be(:project) { create(:project, :repository) }
+ let_it_be(:user) { create(:user, email: project.commit.author_email) }
let(:resource) { create(:deployment, project: project, sha: project.commit.id) }
let(:serializer) { described_class.new(request) }