spec/rubocop/cop/rspec/describe_method_spec.rb in rubocop-rspec-1.2.2 vs spec/rubocop/cop/rspec/describe_method_spec.rb in rubocop-rspec-1.3.0

- old
+ new

@@ -15,6 +15,12 @@ it 'skips methods starting with a . or #' do inspect_source(cop, ["describe Some::Class, '.asdf' do; end", "describe Some::Class, '#fdsa' do; end"]) expect(cop.offenses).to be_empty end + + it 'skips specs not having a string second argument' do + inspect_source(cop, 'describe Some::Class, :config do; end') + + expect(cop.offenses).to be_empty + end end