We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab0427 commit 6906badCopy full SHA for 6906bad
spec/rubocop/cop/rspec_rails/minitest_assertions_spec.rb
@@ -251,6 +251,23 @@
251
refute_includes a, b
252
^^^^^^^^^^^^^^^^^^^^ Use `expect(a).not_to include(b)`.
253
RUBY
254
+
255
+ expect_correction(<<~RUBY)
256
+ expect(a).not_to include(b)
257
+ RUBY
258
+ end
259
260
+ it 'does not register an offense when using `expect(a).to include(b)`' do
261
+ expect_no_offenses(<<~RUBY)
262
+ expect(a).to include(b)
263
264
265
266
+ it 'does not register an offense when ' \
267
+ 'using `expect(a).not_to include(b)`' do
268
269
270
271
end
272
273
0 commit comments