aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_options_helper_i18n_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/form_options_helper_i18n_test.rb')
-rw-r--r--actionpack/test/template/form_options_helper_i18n_test.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/actionpack/test/template/form_options_helper_i18n_test.rb b/actionpack/test/template/form_options_helper_i18n_test.rb
deleted file mode 100644
index c9fc0768bb..0000000000
--- a/actionpack/test/template/form_options_helper_i18n_test.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'abstract_unit'
-
-class FormOptionsHelperI18nTests < Test::Unit::TestCase
- include ActionView::Helpers::FormOptionsHelper
- attr_reader :request
-
- def setup
- @request = mock
- end
-
- def test_country_options_for_select_given_a_locale_it_does_not_check_request_for_locale
- request.expects(:locale).never
- country_options_for_select :locale => 'en-US'
- end
-
- def test_country_options_for_select_given_no_locale_it_checks_request_for_locale
- request.expects(:locale).returns 'en-US'
- country_options_for_select
- end
-
- def test_country_options_for_select_translates_country_names
- countries = ActionView::Helpers::FormOptionsHelper::COUNTRIES
- I18n.expects(:translate).with(:'countries.names', 'en-US').returns countries
- country_options_for_select :locale => 'en-US'
- end
-end \ No newline at end of file