0
0
Fork 0

Migrate fontawesome->material in more views (#31360)

This commit is contained in:
Matt Jankowski 2024-08-20 07:52:45 -04:00 committed by GitHub
parent 3be1b1eaae
commit fa2e7b1708
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 71 additions and 36 deletions

View file

@ -59,6 +59,15 @@ describe ApplicationHelper do
end
end
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
describe 'open_registrations?' do
it 'returns true when open for registrations' do
allow(Setting).to receive(:[]).with('registrations_mode').and_return('open')