1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/relation
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
..
delegation_test.rb Permit list usage cleanup and clearer documentation 2018-08-27 09:51:46 -04:00
delete_all_test.rb Extract {update,delete}_all_test.rb from persistence_test.rb and relations_test.rb 2018-09-16 08:41:08 +09:00
merging_test.rb Bugfix ActiveRecord::Relation#merge special case of from clause 2018-09-28 11:46:40 +03:00
mutation_test.rb don't check for immutability when setting skip_preloading as it doesn't effect the arel and the arel may already be generated by fresh_when 2018-04-12 10:17:31 +10:00
or_test.rb get_value needs to be a public method 2018-04-25 06:29:03 -04:00
predicate_builder_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
record_fetch_warning_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
select_test.rb Fix the obvious typos detected by github.com/client9/misspell 2018-08-08 21:55:46 +09:00
update_all_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
where_chain_test.rb Refactor Active Record to let Arel manage bind params 2017-07-24 09:07:24 -04:00
where_clause_test.rb Arel: Implemented DB-aware NULL-safe comparison (#34451) 2018-11-15 14:49:55 -05:00
where_test.rb Suppress warning: BigDecimal.new is deprecated in activerecord 2017-12-13 21:29:06 +00:00