aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/form_options_helper_i18n_test.rb
diff options
context:
space:
mode:
authorRonak Jangir <ronakjangir47@gmail.com>2015-08-22 09:33:53 +0530
committerRonak Jangir <ronakjangir47@gmail.com>2015-08-24 08:59:19 +0530
commit0a5b08a1e7a50377f94b50e2fdadf9551ad81912 (patch)
tree24adadca3faaef8787cb9fa42cc4efd0a280634a /actionview/test/template/form_options_helper_i18n_test.rb
parent9503e65b9718e4f01860cf017c1cdcdccdfffde7 (diff)
downloadrails-0a5b08a1e7a50377f94b50e2fdadf9551ad81912.tar.gz
rails-0a5b08a1e7a50377f94b50e2fdadf9551ad81912.tar.bz2
rails-0a5b08a1e7a50377f94b50e2fdadf9551ad81912.zip
Removed Mocha from ActionView part 1
Diffstat (limited to 'actionview/test/template/form_options_helper_i18n_test.rb')
-rw-r--r--actionview/test/template/form_options_helper_i18n_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionview/test/template/form_options_helper_i18n_test.rb b/actionview/test/template/form_options_helper_i18n_test.rb
index 4972ea6511..26ede09a5f 100644
--- a/actionview/test/template/form_options_helper_i18n_test.rb
+++ b/actionview/test/template/form_options_helper_i18n_test.rb
@@ -14,8 +14,9 @@ class FormOptionsHelperI18nTests < ActionView::TestCase
end
def test_select_with_prompt_true_translates_prompt_message
- I18n.expects(:translate).with('helpers.select.prompt', { :default => 'Please select' })
- select('post', 'category', [], :prompt => true)
+ assert_called_with(I18n, :translate, ['helpers.select.prompt', { :default => 'Please select' }]) do
+ select('post', 'category', [], :prompt => true)
+ end
end
def test_select_with_translated_prompt