Correct rubocop warning
This commit is contained in:
parent
ca17696529
commit
881e42cc0b
11 changed files with 35 additions and 35 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
FactoryBot.define do
|
||||
factory :user do
|
||||
sequence(:email) {|i| "user#{i}@example.string.com"}
|
||||
password "whocares"
|
||||
password { "whocares" }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue