1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test
Grey Baker 0775407384 Raise an ArgumentError when include_blank is false for a required field in
`Tags::Base#select_content_tag`.

Previously, passing a falsey value to `include_blank` would be ignored if the
field was required, and a blank line would still be inserted. The following will
now raise instead of quietly failing:

`select("post", "category", %w(a required field), { include_blank: false }, required: 'required')`
2015-06-08 16:41:44 +01:00
..
actionpack Revert "Merge pull request #19685 from vngrs/actionview_parent_layout_bug" 2015-06-02 20:57:54 -03:00
activerecord Remove assigns and assert_template. 2015-05-30 14:13:57 +08:00
fixtures Remove assigns and assert_template. 2015-05-30 14:13:57 +08:00
lib/controller Add tests to make sure label and placeholder respect to_model 2015-02-05 16:19:29 -02:00
template Raise an ArgumentError when include_blank is false for a required field in 2015-06-08 16:41:44 +01:00
tmp Add tmp dir in actionview/test/ 2013-08-05 01:24:14 +05:30
abstract_unit.rb Revert "Merge pull request #19404 from dmathieu/remove_rack_env" 2015-03-20 08:14:11 -07:00
active_record_unit.rb Closes rails/rails#18864: Renaming transactional fixtures to transactional tests 2015-03-16 11:35:44 -07:00