mirror of
https://github.com/github/rails.git
synced 2026-01-24 22:08:15 -05:00
Fix unsorted array comparison
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user