Skip to content

Commit

Permalink
Use :ok instead of 200 HTTP code
Browse files Browse the repository at this point in the history
  • Loading branch information
unoduetre committed May 22, 2024
1 parent 333d6dc commit c9020c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers/step_navigation_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ContentItemsControllerTest < ActionController::TestCase

get :show, params: { path: }

assert_response 200
assert_response :ok
assert response.body.include?("Learn to drive a car: step by step")
end

Expand All @@ -30,7 +30,7 @@ class ContentItemsControllerTest < ActionController::TestCase

get :show, params: { path: }

assert_response 200
assert_response :ok
assert_not response.body.include?("Learn to drive a car: step by step")
end
end
Expand Down

0 comments on commit c9020c7

Please sign in to comment.