Replace deprecated update_attributes with update.
https://rubyinrails.com/2019/04/09/rails-6-1-activerecord-deprecates-update-attributes-methods/ DEPRECATION WARNING: update_attributes! is deprecated and will be removed from Rails 6.1 (please, use update! instead)
This commit is contained in:
@@ -14,11 +14,11 @@ class NoteVersionsControllerTest < ActionDispatch::IntegrationTest
|
||||
@user_2 = create(:user)
|
||||
|
||||
CurrentUser.scoped(@user_2, "1.2.3.4") do
|
||||
@note.update_attributes(:body => "1 2")
|
||||
@note.update(body: "1 2")
|
||||
end
|
||||
|
||||
CurrentUser.scoped(@user, "1.2.3.4") do
|
||||
@note.update_attributes(:body => "1 2 3")
|
||||
@note.update(body: "1 2 3")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user