aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-01-31 10:56:16 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-01-31 10:56:16 -0800
commitbc94061156e52ec45fceec582e8400250cc022fb (patch)
treefc069558a9ebc14db435ece85de5b38ba1dd819a /actionpack
parent4790e02e74b2b5b5ff2e2fa89d2ce7af4d5a1877 (diff)
downloadrails-bc94061156e52ec45fceec582e8400250cc022fb.tar.gz
rails-bc94061156e52ec45fceec582e8400250cc022fb.tar.bz2
rails-bc94061156e52ec45fceec582e8400250cc022fb.zip
Fix unsorted array comparison
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/abstract_unit.rb2
-rw-r--r--actionpack/test/template/render_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb
index 4baebcb4d1..882d2cd6a8 100644
--- a/actionpack/test/abstract_unit.rb
+++ b/actionpack/test/abstract_unit.rb
@@ -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
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb
index c226e212b5..c7405d47de 100644
--- a/actionpack/test/template/render_test.rb
+++ b/actionpack/test/template/render_test.rb
@@ -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