Linter noise

This commit is contained in:
Juan José Mata
2025-11-23 23:19:44 +00:00
parent da6bae2e84
commit 7bcfaa24c6
2 changed files with 6 additions and 6 deletions

View File

@@ -95,13 +95,13 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest
test "index swaps dates when end_date is before start_date" do
start_date = Date.current
end_date = 1.month.ago.to_date
get reports_path(
period_type: :custom,
start_date: start_date.to_s,
end_date: end_date.to_s
)
assert_response :ok
# Should show flash message about invalid date range
assert flash[:alert].present?, "Flash alert should be present"
@@ -208,14 +208,14 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest
test "export transactions swaps dates when end_date is before start_date" do
start_date = Date.current
end_date = 1.month.ago.to_date
get export_transactions_reports_path(
format: :csv,
period_type: :custom,
start_date: start_date.to_s,
end_date: end_date.to_s
)
assert_response :ok
assert_equal "text/csv", @response.media_type
# Verify the CSV content is generated (should not crash)