|
39 | 39 | ^^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
40 | 40 | .and change { Foo.baz }.by(0) |
41 | 41 | ^^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
| 42 | + expect { foo } |
| 43 | + .to change(Foo, :bar).by(0) & |
| 44 | + ^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
| 45 | + change(Foo, :baz).by(0) |
| 46 | + ^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
| 47 | + expect { foo } |
| 48 | + .to change { Foo.bar }.by(0) & |
| 49 | + ^^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
| 50 | + change { Foo.baz }.by(0) |
| 51 | + ^^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
42 | 52 | expect { foo } |
43 | 53 | .to change(Foo, :bar).by(0) |
44 | 54 | ^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
|
49 | 59 | ^^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
50 | 60 | .or change { Foo.baz }.by(0) |
51 | 61 | ^^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
| 62 | + expect { foo } |
| 63 | + .to change(Foo, :bar).by(0) | |
| 64 | + ^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
| 65 | + change(Foo, :baz).by(0) |
| 66 | + ^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
| 67 | + expect { foo } |
| 68 | + .to change { Foo.bar }.by(0) | |
| 69 | + ^^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
| 70 | + change { Foo.baz }.by(0) |
| 71 | + ^^^^^^^^^^^^^^^^^^^^^^^^ Prefer negated matchers with compound expectations over `change.by(0)`. |
52 | 72 | end |
53 | 73 | RUBY |
| 74 | + |
| 75 | + expect_no_corrections |
54 | 76 | end |
55 | 77 |
|
56 | 78 | it 'does not register an offense when the argument to `by` is not zero' do |
|
0 commit comments