5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 02:36:22 +00:00

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 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

View file

@ -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