aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-26 11:04:41 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-26 11:04:56 +0900
commita46b2f8911c5730c8c56d487b65f7c5627d334ee (patch)
tree6ec9e97e0fc92e754daae843abaed7a11a281775 /actionview
parente813a9f8605a5cbb34d3ee218f7fed49c98d5378 (diff)
downloadrails-a46b2f8911c5730c8c56d487b65f7c5627d334ee.tar.gz
rails-a46b2f8911c5730c8c56d487b65f7c5627d334ee.tar.bz2
rails-a46b2f8911c5730c8c56d487b65f7c5627d334ee.zip
assert_equal takes expectation first
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/template/form_tag_helper_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionview/test/template/form_tag_helper_test.rb b/actionview/test/template/form_tag_helper_test.rb
index 24ae6b8b90..088f5ae122 100644
--- a/actionview/test/template/form_tag_helper_test.rb
+++ b/actionview/test/template/form_tag_helper_test.rb
@@ -694,31 +694,31 @@ class FormTagHelperTest < ActionView::TestCase
def test_text_area_tag_options_symbolize_keys_side_effects
options = { option: "random_option" }
text_area_tag "body", "hello world", options
- assert_equal options, option: "random_option"
+ assert_equal({option: "random_option"}, options)
end
def test_submit_tag_options_symbolize_keys_side_effects
options = { option: "random_option" }
submit_tag "submit value", options
- assert_equal options, option: "random_option"
+ assert_equal({option: "random_option"}, options)
end
def test_button_tag_options_symbolize_keys_side_effects
options = { option: "random_option" }
button_tag "button value", options
- assert_equal options, option: "random_option"
+ assert_equal({option: "random_option"}, options)
end
def test_image_submit_tag_options_symbolize_keys_side_effects
options = { option: "random_option" }
image_submit_tag "submit source", options
- assert_equal options, option: "random_option"
+ assert_equal({option: "random_option"}, options)
end
def test_image_label_tag_options_symbolize_keys_side_effects
options = { option: "random_option" }
label_tag "submit source", "title", options
- assert_equal options, option: "random_option"
+ assert_equal({option: "random_option"}, options)
end
def protect_against_forgery?