parent
16a6ea2d17
commit
6ab8275cd1
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ module IconsHelper
|
|||
def file_type_icon_class(type, mode, name)
|
||||
if type == 'folder'
|
||||
icon_class = 'folder'
|
||||
elsif mode == 0120000
|
||||
elsif mode == '120000'
|
||||
icon_class = 'share'
|
||||
else
|
||||
# Guess which icon to choose based on file extension.
|
||||
|
|
|
@ -7,7 +7,7 @@ describe IconsHelper do
|
|||
end
|
||||
|
||||
it 'returns share class' do
|
||||
expect(file_type_icon_class('file', 0120000, 'link')).to eq 'share'
|
||||
expect(file_type_icon_class('file', '120000', 'link')).to eq 'share'
|
||||
end
|
||||
|
||||
it 'returns file-pdf-o class with .pdf' do
|
||||
|
|
Loading…
Reference in a new issue