spec/rubocop/cop/rspec/focus_spec.rb in rubocop-rspec-1.20.1 vs spec/rubocop/cop/rspec/focus_spec.rb in rubocop-rspec-1.21.0
- old
+ new
@@ -69,9 +69,10 @@
^^^^^^ Focused spec found.
it 'test', :focus do; end
^^^^^^ Focused spec found.
RUBY
end
+ # rubocop:enable RSpec/ExampleLength
it 'does not flag unfocused specs' do
expect_no_offenses(<<-RUBY)
xcontext 'test' do; end
xscenario 'test' do; end