diff --git a/spec/models/custom_actions/actions/custom_field_spec.rb b/spec/models/custom_actions/actions/custom_field_spec.rb index 644856e59880..d1b4d7ce2f7c 100644 --- a/spec/models/custom_actions/actions/custom_field_spec.rb +++ b/spec/models/custom_actions/actions/custom_field_spec.rb @@ -112,7 +112,7 @@ expect(described_class.all.map(&:custom_field)) .to match_array(custom_fields) - described_class.find_each do |subclass| + described_class.all.each do |subclass| expect(subclass.ancestors).to include(described_class) end end