Skip to content

Commit

Permalink
Add another chore to list
Browse files Browse the repository at this point in the history
  • Loading branch information
jonallured committed Nov 12, 2024
1 parent 97a1e69 commit 005ee85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/models/daily_packet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def chore_list
end

chores << "put out garbage cans" if built_on_monday?
chores << "refill soap dispensers"
chores << "wipe off kitchen table"
chores << "run dishwasher"

Expand Down
2 changes: 1 addition & 1 deletion app/models/daily_packet/pdf_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def draw_front_page
text "Random Warm Fuzzy", style: :bold, size: 20

warm_fuzzy = daily_packet.warm_fuzzy
text warm_fuzzy.title, size: 12
text warm_fuzzy.title.titlecase, size: 12

if warm_fuzzy.body.present?
text warm_fuzzy.body, size: 12
Expand Down
3 changes: 2 additions & 1 deletion spec/models/daily_packet/pdf_view_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "rails_helper"

describe DailyPacket::PdfView do
let(:warm_fuzzy) { FactoryBot.create(:warm_fuzzy, received_at: Time.at(0)) }
let(:warm_fuzzy) { FactoryBot.create(:warm_fuzzy, received_at: Time.at(0), title: "alright haircut") }

let(:daily_packet) do
FactoryBot.create(:daily_packet, built_on: built_on, warm_fuzzy: warm_fuzzy)
Expand Down Expand Up @@ -56,6 +56,7 @@
"CHORE LIST",
"unload dishwasher",
"defrost meat",
"refill soap dispensers",
"wipe off kitchen table",
"run dishwasher"
])
Expand Down

0 comments on commit 005ee85

Please sign in to comment.