From 32913b74b836c7b689e681a030de00da0552954a Mon Sep 17 00:00:00 2001 From: Guilherme Salazar Date: Mon, 26 Sep 2016 18:36:11 -0300 Subject: add "x of y tasks completed" on issuable fix issues pointed out in !6527 add task completion status feature to CHANGELOG --- spec/support/taskable_shared_examples.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/support/taskable_shared_examples.rb') diff --git a/spec/support/taskable_shared_examples.rb b/spec/support/taskable_shared_examples.rb index 201614e45a4..ad1c783df4d 100644 --- a/spec/support/taskable_shared_examples.rb +++ b/spec/support/taskable_shared_examples.rb @@ -17,6 +17,8 @@ shared_examples 'a Taskable' do it 'returns the correct task status' do expect(subject.task_status).to match('2 of') expect(subject.task_status).to match('5 tasks completed') + expect(subject.task_status_short).to match('2/') + expect(subject.task_status_short).to match('5 tasks') end describe '#tasks?' do @@ -41,6 +43,8 @@ shared_examples 'a Taskable' do it 'returns the correct task status' do expect(subject.task_status).to match('0 of') expect(subject.task_status).to match('1 task completed') + expect(subject.task_status_short).to match('0/') + expect(subject.task_status_short).to match('1 task') end end @@ -54,6 +58,8 @@ shared_examples 'a Taskable' do it 'returns the correct task status' do expect(subject.task_status).to match('1 of') expect(subject.task_status).to match('1 task completed') + expect(subject.task_status_short).to match('1/') + expect(subject.task_status_short).to match('1 task') end end end -- cgit v1.2.1