Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Salazar <gmesalazar@gmail.com>2016-09-27 00:36:11 +0300
committerGuilherme Salazar <gmesalazar@gmail.com>2016-10-28 19:01:36 +0300
commit32913b74b836c7b689e681a030de00da0552954a (patch)
tree3e13e52f35e8236049c8413e695a47bae8f3a671 /spec/support/taskable_shared_examples.rb
parent4fd015183cdb280083384c69261c2ab5d475a54b (diff)
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/taskable_shared_examples.rb')
-rw-r--r--spec/support/taskable_shared_examples.rb6
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