mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix unsorted array comparison
This commit is contained in:
parent
4790e02e74
commit
bc94061156
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ ActionController::Base.session_store = nil
|
|||
|
||||
# Register danish language for testing
|
||||
I18n.backend.store_translations 'da', {}
|
||||
ORIGINAL_LOCALES = I18n.available_locales
|
||||
ORIGINAL_LOCALES = I18n.available_locales.map(&:to_s).sort
|
||||
|
||||
FIXTURE_LOAD_PATH = File.join(File.dirname(__FILE__), 'fixtures')
|
||||
ActionController::Base.view_paths = FIXTURE_LOAD_PATH
|
||||
|
|
|
@ -11,7 +11,7 @@ module RenderTestCases
|
|||
I18n.backend.store_translations 'da', {}
|
||||
|
||||
# Ensure original are still the same since we are reindexing view paths
|
||||
assert_equal ORIGINAL_LOCALES, I18n.available_locales
|
||||
assert_equal ORIGINAL_LOCALES, I18n.available_locales.map(&:to_s).sort
|
||||
end
|
||||
|
||||
def test_render_file
|
||||
|
|
Loading…
Reference in a new issue