Merge remote-tracking branch 'parent/main' into upstream-20240821
This commit is contained in:
commit
af0f8f01e1
136 changed files with 693 additions and 756 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ describe SettingsHelper do
|
|||
it 'detects the device and returns a descriptive string' do
|
||||
result = helper.session_device_icon(session)
|
||||
|
||||
expect(result).to eq('mobile')
|
||||
expect(result).to eq('smartphone')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -30,7 +30,7 @@ describe SettingsHelper do
|
|||
it 'detects the device and returns a descriptive string' do
|
||||
result = helper.session_device_icon(session)
|
||||
|
||||
expect(result).to eq('desktop')
|
||||
expect(result).to eq('desktop_mac')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue