mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:01:26 +08:00
DEV: Upgrade to Rails 7
This patch upgrades Rails to version 7.0.2.4.
This commit is contained in:

committed by
Loïc Guitaut

parent
532f9cdb1a
commit
008b700a3f
@ -74,20 +74,6 @@ describe Stylesheet::Compiler do
|
||||
end
|
||||
end
|
||||
|
||||
it "supports asset-url" do
|
||||
css, _map = Stylesheet::Compiler.compile(".body{background-image: asset-url('/images/favicons/github.png');}", "test.scss")
|
||||
|
||||
expect(css).to include("url('/images/favicons/github.png')")
|
||||
expect(css).not_to include('asset-url')
|
||||
end
|
||||
|
||||
it "supports image-url" do
|
||||
css, _map = Stylesheet::Compiler.compile(".body{background-image: image-url('/favicons/github.png');}", "test.scss")
|
||||
|
||||
expect(css).to include("url('/favicons/github.png')")
|
||||
expect(css).not_to include('image-url')
|
||||
end
|
||||
|
||||
it "supports absolute-image-url" do
|
||||
scss = Stylesheet::Importer.new({}).prepended_scss
|
||||
scss += ".body{background-image: absolute-image-url('/favicons/github.png');}"
|
||||
|
Reference in New Issue
Block a user