usar la extensión original del archivo
This commit is contained in:
parent
14aa09b31e
commit
96848d47dc
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class MetadataPath < MetadataTemplate
|
||||||
private
|
private
|
||||||
|
|
||||||
def ext
|
def ext
|
||||||
document.extname.blank? ? '.markdown' : document.extname
|
document.data['ext'].blank? ? '.markdown' : document.data['ext']
|
||||||
end
|
end
|
||||||
|
|
||||||
def lang
|
def lang
|
||||||
|
|
|
@ -143,7 +143,7 @@ class PostsControllerTest < ActionDispatch::IntegrationTest
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'se pueden reordenar' do
|
test 'se pueden reordenar' do
|
||||||
lang = :es
|
lang = I18n.available_locales.sample
|
||||||
posts = @site.posts(lang: lang)
|
posts = @site.posts(lang: lang)
|
||||||
reorder = posts.each_index.to_a.shuffle
|
reorder = posts.each_index.to_a.shuffle
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue