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:
authorGeorge Andrinopoulos <geoandri@gmail.com>2017-02-21 16:44:21 +0300
committerGeorge Andrinopoulos <geoandri@gmail.com>2017-02-21 16:45:10 +0300
commit85c87be361e804977e7924ea9e464d0752cd2f24 (patch)
tree8ec30c40977953b791f82a865372de02afcf847c /spec/factories/todos.rb
parent9007a293a4af1872aa3ce2f0d613510f7839928f (diff)
Add spec for todo with target_type Commit
Diffstat (limited to 'spec/factories/todos.rb')
-rw-r--r--spec/factories/todos.rb9
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