fix letter_avatar spec

This commit is contained in:
Régis Hanol 2016-12-19 10:00:28 +01:00
parent e0ff57ca75
commit c7289f423f
1 changed files with 2 additions and 2 deletions

View File

@ -57,11 +57,11 @@ class LetterAvatar
def cached_path(identity, size)
dir = "#{cache_path}/#{identity.letter}/#{identity.color.join("_")}"
FileUtils.mkdir_p(dir)
"#{dir}/#{size}.png"
File.expand_path "#{dir}/#{size}.png"
end
def fullsize_path(identity)
cached_path(identity, FULLSIZE)
File.expand_path cached_path(identity, FULLSIZE)
end
def generate_fullsize(identity)