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:
authorJacopo <beschi.jacopo@gmail.com>2017-01-16 16:11:08 +0300
committerJacopo <beschi.jacopo@gmail.com>2017-02-18 00:12:19 +0300
commit26160459b56019f445a7d29abc0b72f591e1d2a9 (patch)
treebf7150c7eda9436f001decae56407ca3b3f718f8 /spec/factories/todos.rb
parent63330af84fb6ecdce4611af238af4233a436e260 (diff)
Todo done clicking is kind of unusable.
The Done button will change to an Undo button and the line item will be greyed out. Bold links will be unbolded. The user can undo the task by clicking the Undo button.
Diffstat (limited to 'spec/factories/todos.rb')
-rw-r--r--spec/factories/todos.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/todos.rb b/spec/factories/todos.rb
index b4e4cd97780..a5265f1b189 100644
--- a/spec/factories/todos.rb
+++ b/spec/factories/todos.rb
@@ -40,6 +40,10 @@ FactoryGirl.define do
action { Todo::UNMERGEABLE }
end
+ trait :pending do
+ state :pending
+ end
+
trait :done do
state :done
end