aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorAkshay Vishnoi <akshay.vishnoi@vinsol.com>2015-05-20 02:14:51 +0530
committerAkshay Vishnoi <akshay.vishnoi@vinsol.com>2015-05-24 10:07:54 +0530
commitb5ae29de03cc64c8dc0448fd1b40d8ba69944236 (patch)
tree2247968c7d1ec392db4e7aeec7c19e58d0d62825 /actionview/test
parent6285fc17a9478c79724e646f886cb2d8f916e266 (diff)
downloadrails-b5ae29de03cc64c8dc0448fd1b40d8ba69944236.tar.gz
rails-b5ae29de03cc64c8dc0448fd1b40d8ba69944236.tar.bz2
rails-b5ae29de03cc64c8dc0448fd1b40d8ba69944236.zip
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?" />),