From c2c0aa5e6bab88e46eadf08c11c739b43bacc1df Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Fri, 10 Jan 2025 18:21:10 +0100 Subject: [PATCH] Add test assertion to remove warning in `MiddlewareTest` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ❯ bin/rails test Run options: --seed 5678 Test is missing assertions: `test_don't_fail_on_redirects` /Users/marcoroth/Development/spark/test/middleware_test.rb:4 ............ Finished in 23.007887s, 0.5216 runs/s, 1.3474 assertions/s. 12 runs, 31 assertions, 0 failures, 0 errors, 0 skips --- test/middleware_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/middleware_test.rb b/test/middleware_test.rb index 9818973..0127180 100644 --- a/test/middleware_test.rb +++ b/test/middleware_test.rb @@ -3,5 +3,7 @@ class MiddlewareTest < ActionDispatch::IntegrationTest test "don't fail on redirects" do get "/redirected" + + assert_response :moved_permanently end end