diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 03:06:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 03:06:26 +0300 |
commit | 587794b4b8a6e919e77ee4abe8215fa291e6a91d (patch) | |
tree | 380d6578d1ab5902bb521071128bafd4f70472ef /spec/factories/notes.rb | |
parent | e0bd3a45d9dc6c74cac1a33ea8c03d6d8334249b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/notes.rb')
-rw-r--r-- | spec/factories/notes.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/factories/notes.rb b/spec/factories/notes.rb index 5b9a7e6f864..8304b718136 100644 --- a/spec/factories/notes.rb +++ b/spec/factories/notes.rb @@ -41,14 +41,14 @@ FactoryBot.define do factory :legacy_diff_note_on_merge_request, traits: [:on_merge_request, :legacy_diff_note], class: LegacyDiffNote do association :project, :repository - position '' + position { '' } end factory :diff_note_on_merge_request, traits: [:on_merge_request], class: DiffNote do association :project, :repository transient do - line_number 14 + line_number { 14 } diff_refs { noteable.try(:diff_refs) } end @@ -87,7 +87,7 @@ FactoryBot.define do association :project, :repository transient do - line_number 14 + line_number { 14 } diff_refs { project.commit(commit_id).try(:diff_refs) } end @@ -104,14 +104,14 @@ FactoryBot.define do trait :on_commit do association :project, :repository - noteable nil - noteable_type 'Commit' - noteable_id nil + noteable { nil } + noteable_type { 'Commit' } + noteable_id { nil } commit_id { RepoHelpers.sample_commit.id } end trait :legacy_diff_note do - line_code "0_184_184" + line_code { "0_184_184" } end trait :on_issue do @@ -132,19 +132,19 @@ FactoryBot.define do trait :on_personal_snippet do noteable { create(:personal_snippet) } - project nil + project { nil } end trait :system do - system true + system { true } end trait :downvote do - note "thumbsdown" + note { "thumbsdown" } end trait :upvote do - note "thumbsup" + note { "thumbsup" } end trait :with_attachment do @@ -156,7 +156,7 @@ FactoryBot.define do end transient do - in_reply_to nil + in_reply_to { nil } end before(:create) do |note, evaluator| |