rubocop-autocorrect #202

Merged
bustikiller merged 19 commits from rubocop-autocorrect into main 2024-12-28 18:26:28 +00:00
7 changed files with 30 additions and 18 deletions
Showing only changes of commit 82f17056be - Show all commits

View File

@ -1,19 +1,20 @@
# frozen_string_literal: true
# Copyright (C) 2024 Manuel Bustillo # Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do FactoryBot.define do
factory :expense do factory :expense do
wedding wedding
sequence(:name) { |i| "Expense #{i}" } sequence(:name) { |i| "Expense #{i}" }
pricing_type { "fixed" } pricing_type { 'fixed' }
amount { 100 } amount { 100 }
end end
trait :fixed do trait :fixed do
pricing_type { "fixed" } pricing_type { 'fixed' }
end end
trait :per_person do trait :per_person do
pricing_type { "per_person" } pricing_type { 'per_person' }
end end
end end

View File

@ -1,9 +1,11 @@
# frozen_string_literal: true
# Copyright (C) 2024 Manuel Bustillo # Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do FactoryBot.define do
factory :group_affinity do factory :group_affinity do
association :group_a, factory: :group group_a factory: %i[group]
association :group_b, factory: :group group_b factory: %i[group]
discomfort { GroupAffinity::NEUTRAL } discomfort { GroupAffinity::NEUTRAL }
end end
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Copyright (C) 2024 Manuel Bustillo # Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do FactoryBot.define do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Copyright (C) 2024 Manuel Bustillo # Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do FactoryBot.define do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Copyright (C) 2024 Manuel Bustillo # Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do FactoryBot.define do
@ -5,4 +7,3 @@ FactoryBot.define do
wedding wedding
end end
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Copyright (C) 2024 Manuel Bustillo # Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do FactoryBot.define do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Copyright (C) 2024 Manuel Bustillo # Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do FactoryBot.define do