1
0
Fork 0
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:
Jeremy Kemper 2009-01-31 10:56:16 -08:00
parent 4790e02e74
commit bc94061156
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ ActionController::Base.session_store = nil
# Register danish language for testing # Register danish language for testing
I18n.backend.store_translations 'da', {} 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') FIXTURE_LOAD_PATH = File.join(File.dirname(__FILE__), 'fixtures')
ActionController::Base.view_paths = FIXTURE_LOAD_PATH ActionController::Base.view_paths = FIXTURE_LOAD_PATH

View file

@ -11,7 +11,7 @@ module RenderTestCases
I18n.backend.store_translations 'da', {} I18n.backend.store_translations 'da', {}
# Ensure original are still the same since we are reindexing view paths # 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 end
def test_render_file def test_render_file