mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
Remove support for FontAwesome 4.7 icon names (#9871)
This commit is contained in:
@ -86,11 +86,6 @@ describe SvgSprite do
|
||||
expect(SvgSprite.all_icons).not_to include(" fab-facebook-messenger ")
|
||||
end
|
||||
|
||||
it 'includes Font Awesome 4.7 icons from badges' do
|
||||
Fabricate(:badge, name: 'Custom Icon Badge', icon: 'fa-gamepad')
|
||||
expect(SvgSprite.all_icons).to include("gamepad")
|
||||
end
|
||||
|
||||
it 'includes Font Awesome 5 icons from badges' do
|
||||
Fabricate(:badge, name: 'Custom Icon Badge', icon: 'far fa-building')
|
||||
expect(SvgSprite.all_icons).to include("far-building")
|
||||
@ -215,13 +210,8 @@ describe SvgSprite do
|
||||
expect(SvgSprite.all_icons).to include("fab-bandcamp")
|
||||
end
|
||||
|
||||
it "includes Font Awesome 4.7 icons as group flair" do
|
||||
group = Fabricate(:group, flair_icon: "fa-air-freshener")
|
||||
expect(SvgSprite.bundle).to match(/air-freshener/)
|
||||
end
|
||||
|
||||
it "includes Font Awesome 5 icons as group flair" do
|
||||
group = Fabricate(:group, flair_icon: "far fa-building")
|
||||
expect(SvgSprite.bundle).to match(/building/)
|
||||
it "includes Font Awesome icon from groups" do
|
||||
group = Fabricate(:group, flair_icon: "far-building")
|
||||
expect(SvgSprite.bundle).to match(/far-building/)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user