Correct rubocop warning

This commit is contained in:
Eric Schultz 2019-01-16 14:33:21 -06:00 committed by Luis Castro
parent ca17696529
commit 881e42cc0b
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639
11 changed files with 35 additions and 35 deletions

View file

@ -1,8 +1,8 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do FactoryBot.define do
factory :billing_plan do factory :billing_plan do
amount 0 amount { 0 }
name 'Default Plan' name { 'Default Plan' }
trait :default do trait :default do
end end

View file

@ -3,6 +3,6 @@ FactoryBot.define do
factory :campaign_gift_option do factory :campaign_gift_option do
sequence(:name) {|i| "name_#{i}"} sequence(:name) {|i| "name_#{i}"}
campaign campaign
amount_one_time 200 amount_one_time { 200 }
end end
end end

View file

@ -3,14 +3,14 @@ FactoryBot.define do
factory :card do factory :card do
factory :active_card_1 do factory :active_card_1 do
name 'card 1' name { 'card 1' }
end end
factory :active_card_2 do factory :active_card_2 do
name 'card 1' name { 'card 1' }
end end
factory :inactive_card do factory :inactive_card do
name 'card 1' name { 'card 1' }
inactive true inactive { true }
end end

View file

@ -1,11 +1,11 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do FactoryBot.define do
factory :custom_field_join do factory :custom_field_join do
custom_field_master_id 1 custom_field_master_id { 1 }
supporter_id 4 supporter_id { 4 }
created_at DateTime.now created_at { DateTime.now }
updated_at DateTime.now updated_at { DateTime.now }
value 'value' value { 'value' }
trait :value_from_id do trait :value_from_id do
after(:create) do |cfj| after(:create) do |cfj|

View file

@ -1,7 +1,7 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do FactoryBot.define do
factory :custom_field_master do factory :custom_field_master do
nonprofit "" nonprofit { "" }
name "MyString" name { "MyString" }
end end
end end

View file

@ -1,13 +1,13 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do FactoryBot.define do
factory :event do factory :event do
name "The event of Wonders" name { "The event of Wonders" }
start_datetime DateTime.new(2025, 5, 11, 4,5,6) start_datetime { DateTime.new(2025, 5, 11, 4,5,6) }
end_datetime DateTime.new(2025, 5, 11, 5,1,7) end_datetime { DateTime.new(2025, 5, 11, 5,1,7) }
address "100 N Appleton St" address { "100 N Appleton St" }
city "Appleton" city { "Appleton" }
state_code "WI" state_code { "WI" }
slug "event-of-wonders" slug { "event-of-wonders" }
nonprofit nonprofit
profile profile
end end

View file

@ -1,12 +1,12 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do FactoryBot.define do
factory :nonprofit do factory :nonprofit do
name "spec_nonprofit_full" name { "spec_nonprofit_full" }
city 'Albuquerque' city { 'Albuquerque' }
state_code 'NM' state_code { 'NM' }
zip_code 55555 zip_code { 55555 }
email "example@email.com" email { "example@email.com" }
slug 'sluggy-sluggo' slug { 'sluggy-sluggo' }
factory :nonprofit_with_cards do factory :nonprofit_with_cards do

View file

@ -1,7 +1,7 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do FactoryBot.define do
factory :payment_import do factory :payment_import do
user "" user { "" }
nonprofit "" nonprofit { "" }
end end
end end

View file

@ -1,7 +1,7 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do FactoryBot.define do
factory :supporter do factory :supporter do
name "Fake Supporter Name" name { "Fake Supporter Name" }
nonprofit nonprofit
trait :has_a_card do trait :has_a_card do

View file

@ -1,9 +1,9 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do FactoryBot.define do
factory :tag_join do factory :tag_join do
tag_master_id 1 tag_master_id { 1 }
supporter_id 4 supporter_id { 4 }
created_at DateTime.now created_at { DateTime.now }
updated_at DateTime.now updated_at { DateTime.now }
end end
end end

View file

@ -2,6 +2,6 @@
FactoryBot.define do FactoryBot.define do
factory :user do factory :user do
sequence(:email) {|i| "user#{i}@example.string.com"} sequence(:email) {|i| "user#{i}@example.string.com"}
password "whocares" password { "whocares" }
end end
end end