Sha256: bbb362cf8fe9f0a931f8f90ff3437401665dbfde0d56dc91caab55affabf006b
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
require 'test_helper' class ButtonTest < ActionView::TestCase test "should use button with span inside instead of input" do assert_equal '<button name="commit" type="submit"><span>Send</span></button>', submit_tag end test "should use the value as label" do assert_equal '<button name="commit" type="submit"><span>Other</span></button>', submit_tag('Other') end test "should accept options as attributes" do assert_equal '<button attribute="value" name="commit" type="submit"><span>Send</span></button>', submit_tag('Send', attribute: 'value') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tuning-0.2.2 | test/button_test.rb |
tuning-0.1.3 | test/button_test.rb |