aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-08-26 12:12:40 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-08-26 12:12:40 -0700
commita7ca5595a21fa3bfd0ef51e6a56fbb80a13e040b (patch)
treece3f1d5db546645ee060f86e4e7b4f4421ac4d3e /actionpack/test/template
parentd672a14ee766e86c606db566dd073a3d2332cc60 (diff)
downloadrails-a7ca5595a21fa3bfd0ef51e6a56fbb80a13e040b.tar.gz
rails-a7ca5595a21fa3bfd0ef51e6a56fbb80a13e040b.tar.bz2
rails-a7ca5595a21fa3bfd0ef51e6a56fbb80a13e040b.zip
Revert "I18n: use I18n for select helpers' prompt text"
Broke CI. [#2252 state:open] This reverts commit adedf72821a5623227ce91e6b298838e692477e4.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/form_options_helper_i18n_test.rb22
1 files changed, 0 insertions, 22 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 4f25d41fc9..0000000000
--- a/actionpack/test/template/form_options_helper_i18n_test.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'abstract_unit'
-
-class FormOptionsHelperI18nTests < ActionView::TestCase
- tests ActionView::Helpers::FormOptionsHelper
-
- def setup
- @prompt_message = 'Select!'
- I18n.backend.store_translations :en, :support => { :select => { :prompt => @prompt_message} }
- end
-
- def test_select_with_prompt_true_translates_prompt_message
- I18n.expects(:translate).with('support.select.prompt', { :default => 'Please select' })
- select 'post', 'category', [], :prompt => true
- end
-
- def test_select_with_translated_prompt
- assert_dom_equal(
- %Q(<select id="post_category" name="post[category]"><option value="">#{@prompt_message}</option>\n</select>),
- select('post', 'category', [], :prompt => true)
- )
- end
-end \ No newline at end of file