summaryrefslogtreecommitdiff
path: root/spec/models/ci/build_metadata_spec.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-03-22 17:52:28 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2018-03-28 13:59:56 +0200
commit973e4030b13adbcc4eb7fad347b928a5164a04ff (patch)
tree2583fbd29dce1b6dde4b7a6b26525e7d27cf7d32 /spec/models/ci/build_metadata_spec.rb
parent7d7b0688b846e346a0799340875d459d26c1718d (diff)
downloadgitlab-ce-973e4030b13adbcc4eb7fad347b928a5164a04ff.tar.gz
Refactor build_metadata
Diffstat (limited to 'spec/models/ci/build_metadata_spec.rb')
-rw-r--r--spec/models/ci/build_metadata_spec.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/models/ci/build_metadata_spec.rb b/spec/models/ci/build_metadata_spec.rb
index 4758738cdd0..d21e9600e42 100644
--- a/spec/models/ci/build_metadata_spec.rb
+++ b/spec/models/ci/build_metadata_spec.rb
@@ -13,15 +13,7 @@ describe Ci::BuildMetadata do
end
let(:build) { create(:ci_build, pipeline: pipeline) }
- let(:build_metadata) { described_class.create(build: build) }
-
- context 'when creating' do
- subject { build_metadata.project_id }
-
- it 'saves project_id' do
- is_expected.to eq(project.id)
- end
- end
+ let(:build_metadata) { create(:ci_build_metadata, build: build) }
describe '#save_timeout_state!' do
subject { build_metadata }