spec/rubocop/cop/rspec/context_wording_spec.rb in rubocop-rspec-1.20.0 vs spec/rubocop/cop/rspec/context_wording_spec.rb in rubocop-rspec-1.20.1

- old
+ new

@@ -40,22 +40,22 @@ end RUBY end context 'when configured' do - let(:cop_config) { { 'Prefixes' => %w[without] } } + let(:cop_config) { { 'Prefixes' => %w[if] } } it 'finds context without whitelisted prefixes at the beginning' do expect_offense(<<-RUBY) context 'when display name is present' do - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Start context description with 'without'. + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Start context description with 'if'. end RUBY end it 'skips descriptions with whitelisted prefixes at the beginning' do expect_no_offenses(<<-RUBY) - context 'without a display name' do + context 'if display name is present' do end RUBY end end end