diff options
author | Guilherme Salazar <gmesalazar@gmail.com> | 2016-09-26 18:36:11 -0300 |
---|---|---|
committer | Guilherme Salazar <gmesalazar@gmail.com> | 2016-10-28 14:01:36 -0200 |
commit | 32913b74b836c7b689e681a030de00da0552954a (patch) | |
tree | 3e13e52f35e8236049c8413e695a47bae8f3a671 /spec/support | |
parent | 4fd015183cdb280083384c69261c2ab5d475a54b (diff) | |
download | gitlab-ce-32913b74b836c7b689e681a030de00da0552954a.tar.gz |
add "x of y tasks completed" on issuable
fix issues pointed out in !6527
add task completion status feature to CHANGELOG
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/taskable_shared_examples.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |