Replace more font-awesome
icons in app/helpers
(#30962)
This commit is contained in:
parent
e4092cc73a
commit
52a626f39b
6 changed files with 20 additions and 18 deletions
|
@ -223,7 +223,7 @@ describe ApplicationHelper do
|
|||
|
||||
it 'returns an unlock icon for a unlisted visible status' do
|
||||
result = helper.visibility_icon Status.new(visibility: 'unlisted')
|
||||
expect(result).to match(/unlock/)
|
||||
expect(result).to match(/lock_open/)
|
||||
end
|
||||
|
||||
it 'returns a lock icon for a private visible status' do
|
||||
|
@ -233,7 +233,7 @@ describe ApplicationHelper do
|
|||
|
||||
it 'returns an at icon for a direct visible status' do
|
||||
result = helper.visibility_icon Status.new(visibility: 'direct')
|
||||
expect(result).to match(/at/)
|
||||
expect(result).to match(/alternate_email/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ describe StatusesHelper do
|
|||
it 'returns the correct fa icon' do
|
||||
result = helper.fa_visibility_icon(status)
|
||||
|
||||
expect(result).to match('fa-globe')
|
||||
expect(result).to match('material-globe')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -46,7 +46,7 @@ describe StatusesHelper do
|
|||
it 'returns the correct fa icon' do
|
||||
result = helper.fa_visibility_icon(status)
|
||||
|
||||
expect(result).to match('fa-unlock')
|
||||
expect(result).to match('material-lock_open')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -56,7 +56,7 @@ describe StatusesHelper do
|
|||
it 'returns the correct fa icon' do
|
||||
result = helper.fa_visibility_icon(status)
|
||||
|
||||
expect(result).to match('fa-lock')
|
||||
expect(result).to match('material-lock')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -66,7 +66,7 @@ describe StatusesHelper do
|
|||
it 'returns the correct fa icon' do
|
||||
result = helper.fa_visibility_icon(status)
|
||||
|
||||
expect(result).to match('fa-at')
|
||||
expect(result).to match('material-alternate_email')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue