From 3a23639bc04729cfdc37e4b8ebf46358c3d5a137 Mon Sep 17 00:00:00 2001 From: Ershad Kunnakkadan Date: Mon, 5 Dec 2016 17:42:22 +0530 Subject: Create directly_addressed Todos when mentioned in beginning of a line --- spec/factories/todos.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/factories/todos.rb') diff --git a/spec/factories/todos.rb b/spec/factories/todos.rb index 275561502cd..b4e4cd97780 100644 --- a/spec/factories/todos.rb +++ b/spec/factories/todos.rb @@ -14,6 +14,10 @@ FactoryGirl.define do action { Todo::MENTIONED } end + trait :directly_addressed do + action { Todo::DIRECTLY_ADDRESSED } + end + trait :on_commit do commit_id RepoHelpers.sample_commit.id target_type "Commit" -- cgit v1.2.1