mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-11 06:20:42 +00:00
Migrate fontawesome->material in more views (#31360)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user