diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-04-26 14:52:18 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-29 22:03:00 +0300 |
commit | e558edd1ce47c3c056dd95c0eba8fd811ee749c7 (patch) | |
tree | 1033c82beeff30db5e1506ef1f040298a1f3038f /spec/services/system_note_service_spec.rb | |
parent | 21d0cddd456c03e776a8b30e4695ede94c400792 (diff) |
Update specs to carry out changes in note factory
Diffstat (limited to 'spec/services/system_note_service_spec.rb')
-rw-r--r-- | spec/services/system_note_service_spec.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/services/system_note_service_spec.rb b/spec/services/system_note_service_spec.rb index ee976eb2926..29e0a63d8ce 100644 --- a/spec/services/system_note_service_spec.rb +++ b/spec/services/system_note_service_spec.rb @@ -208,8 +208,10 @@ describe SystemNoteService, services: true do end describe '.merge_when_build_succeeds' do - let(:ci_commit) { build :ci_commit_without_jobs } - let(:noteable) { create :merge_request } + let(:ci_commit) { build(:ci_commit_without_jobs )} + let(:noteable) do + create(:merge_request, source_project: project, target_project: project) + end subject { described_class.merge_when_build_succeeds(noteable, project, author, noteable.last_commit) } @@ -221,8 +223,10 @@ describe SystemNoteService, services: true do end describe '.cancel_merge_when_build_succeeds' do - let(:ci_commit) { build :ci_commit_without_jobs } - let(:noteable) { create :merge_request } + let(:ci_commit) { build(:ci_commit_without_jobs) } + let(:noteable) do + create(:merge_request, source_project: project, target_project: project) + end subject { described_class.cancel_merge_when_build_succeeds(noteable, project, author) } |