Safe autocorrect: No
:warning: The autocorrect a cop can yield false positives by design.
Description
Overview
Checks if an example group does not include any tests.
Examples
usage
# bad
describe Bacon do
let(:bacon) { Bacon.new(chunkiness) }
let(:chunkiness) { false }
context 'extra chunky' do # flagged by rubocop
let(:chunkiness) { true }
end
it 'is chunky' do
expect(bacon.chunky?).to be_truthy
end
end
# good
describe Bacon do
let(:bacon) { Bacon.new(chunkiness) }
let(:chunkiness) { false }
it 'is chunky' do
expect(bacon.chunky?).to be_truthy
end
end
# good
describe Bacon do
pending 'will add tests later'
end
Rubocop challenge!
RSpec/EmptyExampleGroup
Safe autocorrect: No :warning: The autocorrect a cop can yield false positives by design.
Description
Auto generated by rubocop_challenger