Skip to content

False negative in RSpec/ExpectChange with block style #1143

Closed
@pirj

Description

Given:

RSpec/ExpectChange:
  EnforcedStyle: block

the cop is missing the following:

      expect { paint_users! }
        .to change(users.green, :count).by(1)
        .and change(PaintedAdmins.where('color ilike ?', color), :count).by(0)

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions