diff options
author | James Lopez <james@jameslopez.es> | 2016-02-05 17:43:05 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-02-05 17:43:05 +0100 |
commit | a64d881bac1e7b846a718ce1f105b7e39f4dd1b3 (patch) | |
tree | bd345d832b35f03236b8299ffa18f607da639e09 /spec | |
parent | c3ed268ab3cd27cc743cbbbeab36778682209ff7 (diff) | |
download | gitlab-ce-a64d881bac1e7b846a718ce1f105b7e39f4dd1b3.tar.gz |
fixed spec - at last!
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/system_note_service_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/services/system_note_service_spec.rb b/spec/services/system_note_service_spec.rb index a3d3147a79b..655efa0670b 100644 --- a/spec/services/system_note_service_spec.rb +++ b/spec/services/system_note_service_spec.rb @@ -428,15 +428,14 @@ describe SystemNoteService, services: true do context 'commit from fork' do let(:author2) { create(:user) } let(:forked_project) { Projects::ForkService.new(project, author2).execute } - let(:service) { CreateCommitBuildsService.new } let(:commit2) { forked_project.commit } before do - described_class.cross_reference(commit0, commit2, author2) + described_class.cross_reference(noteable, commit2, author2) end it 'is falsey when is a fork mentioning an external issue' do - expect(described_class.cross_reference_exists?(commit0, commit2)). + expect(described_class.cross_reference_exists?(noteable, commit2)). to be_falsey end end |