aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2015-06-15 22:55:58 +0200
committerArthur Nogueira Neves <github@arthurnn.com>2015-06-15 22:55:58 +0200
commite08d8c5b4ab8b2135c724dcf7a4c3bbd47978d0a (patch)
treec9d373aceba0d02d3b5956a34275a84e42a4ba0a /actionview/test
parentc9f7350f63a95c9bb6f759cfde7b6983391c2953 (diff)
parentb5ae29de03cc64c8dc0448fd1b40d8ba69944236 (diff)
downloadrails-e08d8c5b4ab8b2135c724dcf7a4c3bbd47978d0a.tar.gz
rails-e08d8c5b4ab8b2135c724dcf7a4c3bbd47978d0a.tar.bz2
rails-e08d8c5b4ab8b2135c724dcf7a4c3bbd47978d0a.zip
Merge pull request #20108 from akshay-vishnoi/button-tag
Add missing spec and documentation for button_tag helper
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/form_tag_helper_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionview/test/template/form_tag_helper_test.rb b/actionview/test/template/form_tag_helper_test.rb
index cad1c82309..f602c82c42 100644
--- a/actionview/test/template/form_tag_helper_test.rb
+++ b/actionview/test/template/form_tag_helper_test.rb
@@ -510,6 +510,13 @@ class FormTagHelperTest < ActionView::TestCase
)
end
+ def test_button_tag_with_data_disable_with_option
+ assert_dom_equal(
+ %(<button name="button" type="submit" data-disable-with="Please wait...">Checkout</button>),
+ button_tag("Checkout", data: { disable_with: "Please wait..." })
+ )
+ end
+
def test_image_submit_tag_with_confirmation
assert_dom_equal(
%(<input alt="Save" type="image" src="/images/save.gif" data-confirm="Are you sure?" />),