Skip to content

Commit

Permalink
Add test assertion to remove warning in MiddlewareTest
Browse files Browse the repository at this point in the history
❯ 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
  • Loading branch information
marcoroth committed Jan 10, 2025
1 parent 3161548 commit c2c0aa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/middleware_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
class MiddlewareTest < ActionDispatch::IntegrationTest
test "don't fail on redirects" do
get "/redirected"

assert_response :moved_permanently
end
end

0 comments on commit c2c0aa5

Please sign in to comment.