spec/rubocop/cop/rspec/focus_spec.rb in rubocop-rspec-1.32.0 vs spec/rubocop/cop/rspec/focus_spec.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + RSpec.describe RuboCop::Cop::RSpec::Focus do subject(:cop) { described_class.new } # rubocop:disable RSpec/ExampleLength it 'flags all rspec example blocks with that include `focus: true`' do @@ -110,11 +112,10 @@ some_method "foo", focus: true do end RUBY end - # rubocop:disable RSpec/ExampleLength it 'flags focused block types' do expect_offense(<<-RUBY) fdescribe 'test' do; end ^^^^^^^^^^^^^^^^ Focused spec found. RSpec.fdescribe 'test' do; end @@ -133,7 +134,6 @@ ^^^^^^^^^^^^^^^ Focused spec found. focus 'test' do; end ^^^^^^^^^^^^ Focused spec found. RUBY end - # rubocop:enable RSpec/ExampleLength end