diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-05-05 16:00:18 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-05-08 18:43:53 -0300 |
commit | 2ccee7161a58ea04c66b216ccb57e522850f5d95 (patch) | |
tree | 5af6abd2d2e42c59387423f3506cf064c7dc14dd /spec/models | |
parent | d9bebd89dfcf7e4b163b271eea3d7a5c3e99fb5d (diff) | |
download | gitlab-ce-2ccee7161a58ea04c66b216ccb57e522850f5d95.tar.gz |
Small code improvements and add migration spec
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/merge_request_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index 1db1640f5e5..ef349530761 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -760,8 +760,7 @@ describe MergeRequest, models: true do describe '#head_pipeline' do describe 'when the source project exists' do it 'returns the latest pipeline' do - sha = "123abc" - pipeline = create(:ci_empty_pipeline, project: subject.source_project, ref: 'master', status: 'running', sha: sha) + pipeline = create(:ci_empty_pipeline, project: subject.source_project, ref: 'master', status: 'running', sha: "123abc") subject.update(head_pipeline: pipeline) expect(subject.head_pipeline).to eq(pipeline) |