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:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-17 02:31:30 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-18 17:00:53 +0300
commitc29da3f8ca1d759b8cbecb91b6e0529b18cc5c85 (patch)
treeb60d38cea7b271f52307ec48df1a14327915edda /spec/factories/todos.rb
parent1e76245d4e8c5ecbd915c517b6c8923e9c4bbd2d (diff)
Trigger a todo for mentions on commits page
Diffstat (limited to 'spec/factories/todos.rb')
-rw-r--r--spec/factories/todos.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/todos.rb b/spec/factories/todos.rb
index bd85b1d798a..b484315ed12 100644
--- a/spec/factories/todos.rb
+++ b/spec/factories/todos.rb
@@ -30,5 +30,10 @@ FactoryGirl.define do
trait :mentioned do
action { Todo::MENTIONED }
end
+
+ trait :on_commit do
+ commit_id RepoHelpers.sample_commit.id
+ target_type "Commit"
+ end
end
end