spec/rubocop/cop/rspec/describe_method_spec.rb in rubocop-rspec-1.12.0 vs spec/rubocop/cop/rspec/describe_method_spec.rb in rubocop-rspec-1.13.0

- old
+ new

@@ -1,15 +1,15 @@ -describe RuboCop::Cop::RSpec::DescribeMethod do +RSpec.describe RuboCop::Cop::RSpec::DescribeMethod do subject(:cop) { described_class.new } it 'ignores describes with only a class' do expect_no_violations('describe Some::Class do; end') end it 'enforces non-method names' do expect_violation(<<-RUBY) describe Some::Class, 'nope', '.incorrect_usage' do - ^^^^^^ The second argument to describe should be the method being tested. '#instance' or '.class' + ^^^^^^ The second argument to describe should be the method being tested. '#instance' or '.class'. end RUBY end it 'skips methods starting with a . or #' do