summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-10 22:57:44 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-11 00:01:16 -0400
commit19142f407990b7b8a8d74c68ba30bef066e01aa4 (patch)
tree55507978218111e1e3819e458b55ecdb1c4e0e41 /spec/factories
parentb94c6d9f5b48c9ea42cb3098c9b8de8c47fa76a2 (diff)
downloadgitlab-ce-19142f407990b7b8a8d74c68ba30bef066e01aa4.tar.gz
Simplify Note model specs
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/notes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/notes.rb b/spec/factories/notes.rb
index 1e4c0b03f7b..e1009d5916e 100644
--- a/spec/factories/notes.rb
+++ b/spec/factories/notes.rb
@@ -34,7 +34,7 @@ FactoryGirl.define do
factory :system_note, traits: [:system]
trait :on_commit do
- project factory: :project
+ project
commit_id RepoHelpers.sample_commit.id
noteable_type "Commit"
end
@@ -44,7 +44,7 @@ FactoryGirl.define do
end
trait :on_merge_request do
- project factory: :project
+ project
noteable_id 1
noteable_type "MergeRequest"
end