mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +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:
@ -9,7 +9,7 @@ describe ThemeJavascriptsController do
|
||||
describe '#show' do
|
||||
def update_digest_and_get(digest)
|
||||
# actually set digest to make sure 404 is raised by router
|
||||
javascript_cache.update_attributes(digest: digest)
|
||||
javascript_cache.update(digest: digest)
|
||||
|
||||
get "/theme-javascripts/#{digest}.js"
|
||||
end
|
||||
|
Reference in New Issue
Block a user