Auto corrected by following FactoryBot/DynamicAttributeDefinedStatically

This commit is contained in:
Awesome Code
2018-01-09 01:59:43 +00:00
committed by Shiny
parent 49253b59ee
commit 8d166f1fe6
4 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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'

View File

@@ -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

View File

@@ -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