Merge pull request #1518 from Growstuff/awesomecode-factorybot/dynamicattributedefinedstatically-7220

Auto corrected by following FactoryBot/DynamicAttributeDefinedStatically
This commit is contained in:
pozorvlak authored and GitHub committed 2018-01-12 11:51:54 +00:00
commit 2a2bef71da
4 files changed
+6 -6

No files matched your search

+1 -1
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
+1 -1
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'
+3 -3
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
+1 -1
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