Files
fizzy/test/models/collection/cards_test.rb
T
2025-10-31 10:40:45 +01:00

16 lines
397 B
Ruby

require "test_helper"
class Collection::CardsTest < ActiveSupport::TestCase
test "touch cards when the name changes" do
collection = collections(:writebook)
assert_enqueued_with(job: Card::TouchAllJob) do
collection.update!(name: "New Name")
end
assert_no_enqueued_jobs(only: Card::TouchAllJob) do
collection.update!(updated_at: 1.hour.from_now)
end
end
end