spec/rubocop/cop/rspec/describe_class_spec.rb in rubocop-rspec-1.33.0 vs spec/rubocop/cop/rspec/describe_class_spec.rb in rubocop-rspec-1.34.0

- old
+ new

@@ -16,9 +16,16 @@ RSpec.describe Foo do end RUBY end + it 'supports ::RSpec.describe' do + expect_no_offenses(<<-RUBY) + ::RSpec.describe Foo do + end + RUBY + end + it 'checks describe statements after a require' do expect_offense(<<-RUBY) require 'spec_helper' describe "bad describe" do ^^^^^^^^^^^^^^ The first argument to describe should be the class or module being tested.