1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/cases/validations
Ryuta Kamizono 892e38c78e Enable Style/RedundantBegin cop to avoid newly adding redundant begin block
Currently we sometimes find a redundant begin block in code review
(e.g. https://github.com/rails/rails/pull/33604#discussion_r209784205).

I'd like to enable `Style/RedundantBegin` cop to avoid that, since
rescue/else/ensure are allowed inside do/end blocks in Ruby 2.5
(https://bugs.ruby-lang.org/issues/12906), so we'd probably meets with
that situation than before.
2018-12-21 06:12:42 +09:00
..
absence_validation_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
acceptance_validation_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
callbacks_test.rb Fix validation callbacks on multiple context 2017-12-20 00:27:19 +09:00
conditional_validation_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
confirmation_validation_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
exclusion_validation_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
format_validation_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
i18n_generate_message_validation_test.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
i18n_validation_test.rb Call human_attribute_name with a string instead of a symbole 2018-08-16 11:50:13 -04:00
inclusion_validation_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
length_validation_test.rb Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
numericality_validation_test.rb Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
presence_validation_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
validates_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
validations_context_test.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
with_validation_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00