style: Lint code

This commit is contained in:
kbe
2025-09-05 14:38:14 +02:00
parent 0abf8d9aa9
commit 8544802b7f
3 changed files with 19 additions and 19 deletions

View File

@@ -69,7 +69,7 @@ class CleanupExpiredDraftsJobTest < ActiveJob::TestCase
assert_nothing_raised do
CleanupExpiredDraftsJob.perform_now
end
# Basic functional verification
assert_not_nil Ticket.find(expired_ticket.id)
end
@@ -77,7 +77,7 @@ class CleanupExpiredDraftsJobTest < ActiveJob::TestCase
test "should handle multiple expired tickets" do
# Create multiple orders with multiple expired tickets
@order.update!(expires_at: 1.hour.ago)
ticket1 = Ticket.create!(
order: @order,
ticket_type: @ticket_type,
@@ -85,20 +85,20 @@ class CleanupExpiredDraftsJobTest < ActiveJob::TestCase
first_name: "John",
last_name: "Doe"
)
ticket2 = Ticket.create!(
order: @order,
ticket_type: @ticket_type,
status: "draft",
status: "draft",
first_name: "Jane",
last_name: "Doe"
)
# Job should run without errors
assert_nothing_raised do
CleanupExpiredDraftsJob.perform_now
end
# Verify both tickets still exist (functional test)
assert_not_nil Ticket.find(ticket1.id)
assert_not_nil Ticket.find(ticket2.id)
@@ -114,12 +114,12 @@ class CleanupExpiredDraftsJobTest < ActiveJob::TestCase
first_name: "John",
last_name: "Doe"
)
# Job should run without errors
assert_nothing_raised do
CleanupExpiredDraftsJob.perform_now
end
# Ticket should remain unchanged
assert_equal "draft", ticket.reload.status
end
@@ -127,10 +127,10 @@ class CleanupExpiredDraftsJobTest < ActiveJob::TestCase
test "should handle empty expired tickets list" do
# Ensure no tickets are expired
@order.update!(expires_at: 1.hour.from_now)
# Job should run without errors
assert_nothing_raised do
CleanupExpiredDraftsJob.perform_now
end
end
end
end