diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-03-17 02:31:30 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-03-18 17:00:53 +0300 |
commit | c29da3f8ca1d759b8cbecb91b6e0529b18cc5c85 (patch) | |
tree | b60d38cea7b271f52307ec48df1a14327915edda /spec/factories | |
parent | 1e76245d4e8c5ecbd915c517b6c8923e9c4bbd2d (diff) |
Trigger a todo for mentions on commits page
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/todos.rb | 5 |
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 |