Skip to content

Commit

Permalink
Fix test name in Users::NamesControllerTest
Browse files Browse the repository at this point in the history
This was a copy & paste error in #2497. I thought it was worth fixing
it, because it's pretty much saying the opposite of what the assertion
is testing.
  • Loading branch information
floehopper committed Nov 9, 2023
1 parent e2e88de commit d71d8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/controllers/users/names_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Users::NamesControllerTest < ActionController::TestCase
sign_in(create(:user))
end

should "update user name" do
should "not be authorized" do
user = create(:user, name: "user-name")

put :update, params: { user_id: user, user: { name: "new-user-name" } }
Expand Down

0 comments on commit d71d8e4

Please sign in to comment.