mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 02:58:48 +08: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:
@ -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')
|
||||
|
Reference in New Issue
Block a user