Fix factories
This commit is contained in:
parent
e29687552e
commit
6c724ed96c
|
@ -95,17 +95,17 @@ FactoryGirl.define do
|
||||||
author
|
author
|
||||||
|
|
||||||
factory :note_on_commit, traits: [:on_commit]
|
factory :note_on_commit, traits: [:on_commit]
|
||||||
factory :note_on_commit_line, traits: [:on_commit, :on_line]
|
factory :note_on_commit_diff, traits: [:on_commit, :on_diff]
|
||||||
factory :note_on_issue, traits: [:on_issue], aliases: [:votable_note]
|
factory :note_on_issue, traits: [:on_issue], aliases: [:votable_note]
|
||||||
factory :note_on_merge_request, traits: [:on_merge_request]
|
factory :note_on_merge_request, traits: [:on_merge_request]
|
||||||
factory :note_on_merge_request_line, traits: [:on_merge_request, :on_line]
|
factory :note_on_merge_request_diff, traits: [:on_merge_request, :on_diff]
|
||||||
|
|
||||||
trait :on_commit do
|
trait :on_commit do
|
||||||
commit_id "bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a"
|
commit_id "bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a"
|
||||||
noteable_type "Commit"
|
noteable_type "Commit"
|
||||||
end
|
end
|
||||||
|
|
||||||
trait :on_line do
|
trait :on_diff do
|
||||||
line_code "0_184_184"
|
line_code "0_184_184"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue