diff options
author | George Andrinopoulos <geoandri@gmail.com> | 2017-02-21 15:44:21 +0200 |
---|---|---|
committer | George Andrinopoulos <geoandri@gmail.com> | 2017-02-21 15:45:10 +0200 |
commit | 85c87be361e804977e7924ea9e464d0752cd2f24 (patch) | |
tree | 8ec30c40977953b791f82a865372de02afcf847c /spec/factories/todos.rb | |
parent | 9007a293a4af1872aa3ce2f0d613510f7839928f (diff) | |
download | gitlab-ce-85c87be361e804977e7924ea9e464d0752cd2f24.tar.gz |
Add spec for todo with target_type Commit
Diffstat (limited to 'spec/factories/todos.rb')
-rw-r--r-- | spec/factories/todos.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/factories/todos.rb b/spec/factories/todos.rb index b4e4cd97780..a2cedda0eec 100644 --- a/spec/factories/todos.rb +++ b/spec/factories/todos.rb @@ -44,4 +44,13 @@ FactoryGirl.define do state :done end end + + factory :on_commit_todo, class: Todo do + project factory: :empty_project + author + user + action { Todo::ASSIGNED } + commit_id RepoHelpers.sample_commit.id + target_type "Commit" + end end |