Add and apply Rails/RedundantActiveRecordAllMethod
This rule was introduced in rubocop-rails 2.21.0.
This commit is contained in:
@@ -75,7 +75,7 @@ describe Shared::BannerComponent do
|
||||
end
|
||||
|
||||
it "does not render anything with no active banners" do
|
||||
Banner.all.find_each { |banner| banner.update!(post_ended_at: Date.current - 1.day) }
|
||||
Banner.find_each { |banner| banner.update!(post_ended_at: Date.current - 1.day) }
|
||||
|
||||
render_inline Shared::BannerComponent.new("debates")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user