aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_helper_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-11-04 03:31:39 -0700
committerJosé Valim <jose.valim@gmail.com>2011-11-04 03:31:39 -0700
commit2c67845271f7bd800fa4f902e187c803ab61bb01 (patch)
tree3ae9f934f8819200fd1c1fec1cea97bef46d4007 /actionpack/test/template/form_helper_test.rb
parent0e407a90413d8a19002b85508d811ccdf2190783 (diff)
parent56207a3f0165650abb273594f1f54fbb92bbf177 (diff)
downloadrails-2c67845271f7bd800fa4f902e187c803ab61bb01.tar.gz
rails-2c67845271f7bd800fa4f902e187c803ab61bb01.tar.bz2
rails-2c67845271f7bd800fa4f902e187c803ab61bb01.zip
Merge pull request #3514 from waseem/remove_size_attribute_from_number_field
Remove 'size' attribute from number_field form helper fixes #3454
Diffstat (limited to 'actionpack/test/template/form_helper_test.rb')
-rw-r--r--actionpack/test/template/form_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index e36d032f6c..bd7b322fc9 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -438,12 +438,12 @@ class FormHelperTest < ActionView::TestCase
end
def test_number_field
- expected = %{<input name="order[quantity]" size="30" max="9" id="order_quantity" type="number" min="1" />}
+ expected = %{<input name="order[quantity]" max="9" id="order_quantity" type="number" min="1" />}
assert_dom_equal(expected, number_field("order", "quantity", :in => 1...10))
end
def test_range_input
- expected = %{<input name="hifi[volume]" step="0.1" size="30" max="11" id="hifi_volume" type="range" min="0" />}
+ expected = %{<input name="hifi[volume]" step="0.1" max="11" id="hifi_volume" type="range" min="0" />}
assert_dom_equal(expected, range_field("hifi", "volume", :in => 0..11, :step => 0.1))
end