Merge remote-tracking branch 'parent/main' into upstream-20240821

This commit is contained in:
KMY 2024-08-21 12:39:30 +09:00
commit af0f8f01e1
136 changed files with 693 additions and 756 deletions

View file

@ -53,9 +53,12 @@ describe ApplicationHelper do
end
end
describe 'fa_icon' do
it 'returns a tag of fixed-width cog' do
expect(helper.fa_icon('cog fw')).to eq '<i class="fa fa-cog fa-fw"></i>'
describe '#material_symbol' do
it 'returns an svg with the icon and options' do
expect(helper.material_symbol('lock', class: :test, data: { hidden: true }))
.to match('<svg.*/svg>')
.and match('class="icon material-lock test"')
.and match('data-hidden="true"')
end
end