usar la extensión original del archivo

This commit is contained in:
f 2019-10-18 18:08:43 -03:00
parent 14aa09b31e
commit 96848d47dc
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ class MetadataPath < MetadataTemplate
private
def ext
document.extname.blank? ? '.markdown' : document.extname
document.data['ext'].blank? ? '.markdown' : document.data['ext']
end
def lang

View file

@ -143,7 +143,7 @@ class PostsControllerTest < ActionDispatch::IntegrationTest
end
test 'se pueden reordenar' do
lang = :es
lang = I18n.available_locales.sample
posts = @site.posts(lang: lang)
reorder = posts.each_index.to_a.shuffle