spec/rubocop/cop/rspec/describe_class_spec.rb in rubocop-rspec-1.21.0 vs spec/rubocop/cop/rspec/describe_class_spec.rb in rubocop-rspec-1.22.0
- old
+ new
@@ -54,9 +54,16 @@
describe 'my new feature', type: :feature do
end
RUBY
end
+ it 'ignores system specs' do
+ expect_no_offenses(<<-RUBY)
+ describe 'my new system test', type: :system do
+ end
+ RUBY
+ end
+
it 'ignores feature specs when RSpec.describe is used' do
expect_no_offenses(<<-RUBY)
RSpec.describe 'my new feature', type: :feature do
end
RUBY