mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 07:01:03 -05:00
Auto corrected by following FactoryBot/DynamicAttributeDefinedStatically
This commit is contained in:
@@ -6,7 +6,7 @@ FactoryBot.define do
|
||||
plant_part
|
||||
planting nil
|
||||
owner { planting.present? ? planting.owner : FactoryBot.create(:member) }
|
||||
harvested_at Time.zone.local(2015, 9, 17)
|
||||
harvested_at { Time.zone.local(2015, 9, 17) }
|
||||
quantity "3"
|
||||
unit "individual"
|
||||
weight_quantity 6
|
||||
|
||||
@@ -7,7 +7,7 @@ FactoryBot.define do
|
||||
password 'password1'
|
||||
email { generate(:email) }
|
||||
tos_agreement true
|
||||
confirmed_at Time.now
|
||||
confirmed_at { Time.now }
|
||||
show_email false
|
||||
bio 'I love seeds'
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ FactoryBot.define do
|
||||
owner
|
||||
garden { FactoryBot.create :garden, owner: owner }
|
||||
crop
|
||||
planted_at Time.zone.local(2014, 7, 30)
|
||||
planted_at { Time.zone.local(2014, 7, 30) }
|
||||
quantity 33
|
||||
description "This is a *really* good plant."
|
||||
|
||||
@@ -33,8 +33,8 @@ FactoryBot.define do
|
||||
|
||||
factory :finished_planting do
|
||||
finished true
|
||||
planted_at Time.zone.local(2014, 7, 30)
|
||||
finished_at Time.zone.local(2014, 8, 30)
|
||||
planted_at { Time.zone.local(2014, 7, 30) }
|
||||
finished_at { Time.zone.local(2014, 8, 30) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@ FactoryBot.define do
|
||||
subject "A Post"
|
||||
body "This is some text."
|
||||
author
|
||||
created_at Time.now
|
||||
created_at { Time.now }
|
||||
|
||||
# Markdown is allowed in posts
|
||||
factory :markdown_post do
|
||||
|
||||
Reference in New Issue
Block a user