mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:33:31 +08:00
FIX: Invalidate stylesheet cache when discourse-fonts is bumped (#30869)
This commit is contained in:
@ -1043,7 +1043,7 @@ RSpec.describe Stylesheet::Manager do
|
||||
|
||||
describe ".fs_asset_cachebuster" do
|
||||
it "returns a number in test/development mode" do
|
||||
expect(Stylesheet::Manager.fs_asset_cachebuster).to match(/\A[0-9]+:[0-9]+\z/)
|
||||
expect(Stylesheet::Manager.fs_asset_cachebuster).to match(/\A.*:[0-9]+\z/)
|
||||
end
|
||||
|
||||
context "with production mode enabled" do
|
||||
@ -1056,7 +1056,7 @@ RSpec.describe Stylesheet::Manager do
|
||||
|
||||
it "returns a hash" do
|
||||
cachebuster = Stylesheet::Manager.fs_asset_cachebuster
|
||||
expect(cachebuster).to match(/\A[0-9]+:[0-9a-f]{40}\z/)
|
||||
expect(cachebuster).to match(/\A.*:[0-9a-f]{40}\z/)
|
||||
end
|
||||
|
||||
it "caches the value on the filesystem" do
|
||||
|
Reference in New Issue
Block a user