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:
authorRobert Speicher <rspeicher@gmail.com>2015-05-11 05:57:44 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-11 07:01:16 +0300
commit19142f407990b7b8a8d74c68ba30bef066e01aa4 (patch)
tree55507978218111e1e3819e458b55ecdb1c4e0e41 /spec/factories/notes.rb
parentb94c6d9f5b48c9ea42cb3098c9b8de8c47fa76a2 (diff)
Simplify Note model specs
Diffstat (limited to 'spec/factories/notes.rb')
-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