From e1449df7a2eccbdaeb807d60a1c67b249d6ec03e Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Tue, 4 Dec 2018 19:24:21 +0900 Subject: Fix coding offence --- spec/models/ci/build_metadata_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/models/ci/build_metadata_spec.rb') diff --git a/spec/models/ci/build_metadata_spec.rb b/spec/models/ci/build_metadata_spec.rb index 37227469fcc..519968b9e48 100644 --- a/spec/models/ci/build_metadata_spec.rb +++ b/spec/models/ci/build_metadata_spec.rb @@ -1,8 +1,6 @@ require 'spec_helper' describe Ci::BuildMetadata do - it_behaves_like 'having unique enum values' - set(:user) { create(:user) } set(:group) { create(:group, :access_requestable) } set(:project) { create(:project, :repository, group: group, build_timeout: 2000) } @@ -17,6 +15,8 @@ describe Ci::BuildMetadata do let(:build) { create(:ci_build, pipeline: pipeline) } let(:build_metadata) { build.metadata } + it_behaves_like 'having unique enum values' + describe '#update_timeout_state' do subject { build_metadata } -- cgit v1.2.1