diff --git a/spec/factories/billing_plans.rb b/spec/factories/billing_plans.rb index 05ffea0c..a86c08ac 100644 --- a/spec/factories/billing_plans.rb +++ b/spec/factories/billing_plans.rb @@ -1,8 +1,8 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later FactoryBot.define do factory :billing_plan do - amount 0 - name 'Default Plan' + amount { 0 } + name { 'Default Plan' } trait :default do end diff --git a/spec/factories/campaign_gift_options.rb b/spec/factories/campaign_gift_options.rb index 31efecee..48f8e08b 100644 --- a/spec/factories/campaign_gift_options.rb +++ b/spec/factories/campaign_gift_options.rb @@ -3,6 +3,6 @@ FactoryBot.define do factory :campaign_gift_option do sequence(:name) {|i| "name_#{i}"} campaign - amount_one_time 200 + amount_one_time { 200 } end end diff --git a/spec/factories/cards.rb b/spec/factories/cards.rb index a26d490b..5dd70c97 100644 --- a/spec/factories/cards.rb +++ b/spec/factories/cards.rb @@ -3,14 +3,14 @@ FactoryBot.define do factory :card do factory :active_card_1 do - name 'card 1' + name { 'card 1' } end factory :active_card_2 do - name 'card 1' + name { 'card 1' } end factory :inactive_card do - name 'card 1' - inactive true + name { 'card 1' } + inactive { true } end diff --git a/spec/factories/custom_field_joins.rb b/spec/factories/custom_field_joins.rb index cbaab8f2..ae2c56c1 100644 --- a/spec/factories/custom_field_joins.rb +++ b/spec/factories/custom_field_joins.rb @@ -1,11 +1,11 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later FactoryBot.define do factory :custom_field_join do - custom_field_master_id 1 - supporter_id 4 - created_at DateTime.now - updated_at DateTime.now - value 'value' + custom_field_master_id { 1 } + supporter_id { 4 } + created_at { DateTime.now } + updated_at { DateTime.now } + value { 'value' } trait :value_from_id do after(:create) do |cfj| diff --git a/spec/factories/custom_field_masters.rb b/spec/factories/custom_field_masters.rb index b8b45d84..cc1848ef 100644 --- a/spec/factories/custom_field_masters.rb +++ b/spec/factories/custom_field_masters.rb @@ -1,7 +1,7 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later FactoryBot.define do factory :custom_field_master do - nonprofit "" - name "MyString" + nonprofit { "" } + name { "MyString" } end end diff --git a/spec/factories/events.rb b/spec/factories/events.rb index b5307176..50557398 100644 --- a/spec/factories/events.rb +++ b/spec/factories/events.rb @@ -1,13 +1,13 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later FactoryBot.define do factory :event do - name "The event of Wonders" - start_datetime DateTime.new(2025, 5, 11, 4,5,6) - end_datetime DateTime.new(2025, 5, 11, 5,1,7) - address "100 N Appleton St" - city "Appleton" - state_code "WI" - slug "event-of-wonders" + name { "The event of Wonders" } + start_datetime { DateTime.new(2025, 5, 11, 4,5,6) } + end_datetime { DateTime.new(2025, 5, 11, 5,1,7) } + address { "100 N Appleton St" } + city { "Appleton" } + state_code { "WI" } + slug { "event-of-wonders" } nonprofit profile end diff --git a/spec/factories/nonprofits.rb b/spec/factories/nonprofits.rb index c555f9a0..d32be4de 100644 --- a/spec/factories/nonprofits.rb +++ b/spec/factories/nonprofits.rb @@ -1,12 +1,12 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later FactoryBot.define do factory :nonprofit do - name "spec_nonprofit_full" - city 'Albuquerque' - state_code 'NM' - zip_code 55555 - email "example@email.com" - slug 'sluggy-sluggo' + name { "spec_nonprofit_full" } + city { 'Albuquerque' } + state_code { 'NM' } + zip_code { 55555 } + email { "example@email.com" } + slug { 'sluggy-sluggo' } factory :nonprofit_with_cards do diff --git a/spec/factories/payment_imports.rb b/spec/factories/payment_imports.rb index 6dd38917..b42c0cce 100644 --- a/spec/factories/payment_imports.rb +++ b/spec/factories/payment_imports.rb @@ -1,7 +1,7 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later FactoryBot.define do factory :payment_import do - user "" - nonprofit "" + user { "" } + nonprofit { "" } end end diff --git a/spec/factories/supporters.rb b/spec/factories/supporters.rb index 7a7c665e..2b119a5c 100644 --- a/spec/factories/supporters.rb +++ b/spec/factories/supporters.rb @@ -1,7 +1,7 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later FactoryBot.define do factory :supporter do - name "Fake Supporter Name" + name { "Fake Supporter Name" } nonprofit trait :has_a_card do diff --git a/spec/factories/tag_joins.rb b/spec/factories/tag_joins.rb index 626dcd9e..9bee566a 100644 --- a/spec/factories/tag_joins.rb +++ b/spec/factories/tag_joins.rb @@ -1,9 +1,9 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later FactoryBot.define do factory :tag_join do - tag_master_id 1 - supporter_id 4 - created_at DateTime.now - updated_at DateTime.now + tag_master_id { 1 } + supporter_id { 4 } + created_at { DateTime.now } + updated_at { DateTime.now } end end diff --git a/spec/factories/users.rb b/spec/factories/users.rb index c3f28efc..2ba069e4 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -2,6 +2,6 @@ FactoryBot.define do factory :user do sequence(:email) {|i| "user#{i}@example.string.com"} - password "whocares" + password { "whocares" } end end