Files
growstuff/spec/factories/activity.rb
Daniel O'Connor 4f5c47ba58 Ruby 3.2: Rubocop - Layout/* (#3785)
* Rubocop - Layout/*

* Regenerate
2024-07-13 15:19:09 +09:30

26 lines
557 B
Ruby

# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :activity do
name { "Admire" }
description { "Spend 10 minutes admiring your hard work" }
category { "General" }
owner
trait :garden do
category { "Soil Cultivation" }
description { "Apply compost from winter" }
due_date { 3.months.from_now }
garden
end
trait :planting do
category { "Pruning" }
description { "Stake tomato" }
planting
end
end
end