Skip tests for transliteration for adapters different than grit
This commit is contained in:
@@ -30,6 +30,11 @@ context "Frontend" do
|
||||
# and in file names saved to disk
|
||||
# urls are not case sensitive
|
||||
assert_equal 'Title-Space', 'Title Space'.to_url
|
||||
end
|
||||
|
||||
test "translation" do
|
||||
# we transliterate only when adapter is grit
|
||||
return if defined?(Gollum::GIT_ADAPTER) && Gollum::GIT_ADAPTER != 'grit'
|
||||
|
||||
# ascii only file names prevent UTF8 issues
|
||||
# when using git repos across operating systems
|
||||
|
||||
@@ -90,6 +90,9 @@ context "Frontend Unicode support" do
|
||||
end
|
||||
|
||||
test 'transliteration' do
|
||||
# we transliterate only when adapter is grit
|
||||
return if defined?(Gollum::GIT_ADAPTER) && Gollum::GIT_ADAPTER != 'grit'
|
||||
|
||||
# TODO: Remove to_url once write_page changes are merged.
|
||||
@wiki.write_page('ééééé'.to_url, :markdown, '한글 text', commit_details)
|
||||
page = @wiki.page('eeeee')
|
||||
|
||||
Reference in New Issue
Block a user