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:
Sam Saffron
2019-04-29 17:32:25 +10:00
parent 3b95f34e7b
commit 45285f1477
49 changed files with 103 additions and 103 deletions

View File

@ -45,7 +45,7 @@ RSpec.describe "Post rake tasks" do
describe 'rebake_match' do
it 'rebakes matched posts' do
post.update_attributes(cooked: '')
post.update(cooked: '')
HighLine::Simulate.with('y') do
Rake::Task['posts:rebake_match'].invoke('brown')