Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/bundler/factory_bot_rails-6.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner authored Dec 2, 2024
2 parents 89ba3fe + a93fd40 commit 104e916
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion clock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ module Clockwork
end

every(1.day, "Send reminder emails", at: "12:00", if: lambda { |_| Rails.env.production? }) do
ReminderDeadlineJob.perform_now
ReminderDeadlineJob.perform_later
end
end
18 changes: 10 additions & 8 deletions spec/system/distributions_by_county_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
partner_1.profile.served_areas.each do |served_area|
expect(page).to have_text(served_area.county.name)
end
expect(page).to have_text("50", count: 4)
expect(page).to have_text("$525.00", count: 4)

expect(page).to have_css("table tbody tr td", text: "50", exact_text: true, count: 4)
expect(page).to have_css("table tbody tr td", text: "$525.00", exact_text: true, count: 4)
end

it("works for this year") do
Expand All @@ -31,8 +32,9 @@
partner_1.profile.served_areas.each do |served_area|
expect(page).to have_text(served_area.county.name)
end
expect(page).to have_text("25", count: 4)
expect(page).to have_text("$262.50", count: 4)

expect(page).to have_css("table tbody tr td", text: "25", exact_text: true, count: 4)
expect(page).to have_css("table tbody tr td", text: "$262.50", exact_text: true, count: 4)
end

it("works for prior year") do
Expand All @@ -53,8 +55,8 @@
partner_1.profile.served_areas.each do |served_area|
expect(page).to have_text(served_area.county.name)
end
expect(page).to have_text("25", count: 4)
expect(page).to have_text("$262.50", count: 4)
expect(page).to have_css("table tbody tr td", text: "25", exact_text: true, count: 4)
expect(page).to have_css("table tbody tr td", text: "$262.50", exact_text: true, count: 4)
end

it("works for last 12 months") do
Expand All @@ -75,8 +77,8 @@
partner_1.profile.served_areas.each do |served_area|
expect(page).to have_text(served_area.county.name)
end
expect(page).to have_text("25", count: 4)
expect(page).to have_text("$262.50", count: 4)
expect(page).to have_css("table tbody tr td", text: "25", exact_text: true, count: 4)
expect(page).to have_css("table tbody tr td", text: "$262.50", exact_text: true, count: 4)
end
end

Expand Down

0 comments on commit 104e916

Please sign in to comment.