From 8c4c40d09b6947f4ac652dd76cc422fea2a6443d Mon Sep 17 00:00:00 2001 From: blackst0ne Date: Fri, 5 May 2017 23:01:50 +1100 Subject: Updated specs --- spec/services/issues/update_service_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'spec/services/issues') diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb index 5b324f3c706..ee01b3871f3 100644 --- a/spec/services/issues/update_service_spec.rb +++ b/spec/services/issues/update_service_spec.rb @@ -132,6 +132,17 @@ describe Issues::UpdateService, services: true do end end + context 'when description changed' do + it 'creates system note about description change' do + update_issue(description: 'Changed description') + + note = find_note('changed the description') + + expect(note).not_to be_nil + expect(note.note).to eq('changed the description') + end + end + context 'when issue turns confidential' do let(:opts) do { -- cgit v1.2.1