mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: remove update_attributes which is deprecated in Rails 6
See: https://github.com/rails/rails/pull/31998 update_attributes is a relic of the past, it should no longer be used.
This commit is contained in:
@@ -26,7 +26,7 @@ describe InvitesController do
|
||||
end
|
||||
|
||||
it "returns error if invite has already been redeemed" do
|
||||
invite.update_attributes!(redeemed_at: 1.day.ago)
|
||||
invite.update!(redeemed_at: 1.day.ago)
|
||||
get "/invites/#{invite.invite_key}"
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
Reference in New Issue
Block a user