mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Spec cleanup
This commit is contained in:
parent
b1d41de9fb
commit
f633cc9960
3 changed files with 7 additions and 7 deletions
|
@ -116,7 +116,7 @@ module ApplicationHelper
|
|||
def material_symbol(icon, attributes = {})
|
||||
inline_svg_tag(
|
||||
"400-24px/#{icon}.svg",
|
||||
class: %w(icon).concat(attributes[:class].to_s.split),
|
||||
class: ['icon', "material-#{icon}"].concat(attributes[:class].to_s.split),
|
||||
role: :img
|
||||
)
|
||||
end
|
||||
|
|
|
@ -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…
Reference in a new issue