spec/rubocop/cop/rspec/describe_class_spec.rb in rubocop-rspec-1.4.0 vs spec/rubocop/cop/rspec/describe_class_spec.rb in rubocop-rspec-1.4.1

- old
+ new

@@ -42,9 +42,14 @@ ' :test, :type => :feature, :foo => :bar do;', 'end']) expect(cop.offenses).to be_empty end + it 'ignores routing specs' do + inspect_source(cop, "describe 'my new route', type: :routing do; end") + expect(cop.offenses).to be_empty + end + it "doesn't blow up on single-line describes" do inspect_source(cop, 'describe Some::Class') expect(cop.offenses).to be_empty end end