diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-04-29 02:54:37 +0300 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-04 04:58:41 +0300 |
commit | 323596f68efe95b479a0dc29832b8033a1eddef0 (patch) | |
tree | cbf2190f46a6df26f694ae67ce1c2b0f826a71c8 /spec/services/system_note_service_spec.rb | |
parent | 4faa65d8381f3e1e45bdf3a9bc9785b588891b66 (diff) |
Add system note on description change of issue/merge request
Diffstat (limited to 'spec/services/system_note_service_spec.rb')
-rw-r--r-- | spec/services/system_note_service_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/services/system_note_service_spec.rb b/spec/services/system_note_service_spec.rb index 75d7caf2508..5e85c3c1621 100644 --- a/spec/services/system_note_service_spec.rb +++ b/spec/services/system_note_service_spec.rb @@ -292,6 +292,20 @@ describe SystemNoteService, services: true do end end + describe '.change_description' do + subject { described_class.change_description(noteable, project, author) } + + context 'when noteable responds to `description`' do + it_behaves_like 'a system note' do + let(:action) { 'description' } + end + + it 'sets the note text' do + expect(subject.note).to eq 'changed the description' + end + end + end + describe '.change_issue_confidentiality' do subject { described_class.change_issue_confidentiality(noteable, project, author) } |