spec/rubocop/cop/rspec/overwriting_setup_spec.rb in rubocop-rspec-1.14.0 vs spec/rubocop/cop/rspec/overwriting_setup_spec.rb in rubocop-rspec-1.15.0
- old
+ new
@@ -41,6 +41,11 @@
let(:a) { b }
end
end
RUBY
end
+
+ it 'does not encounter an error when handling an empty describe' do
+ expect { inspect_source(cop, 'RSpec.describe(User) do end', 'a_spec.rb') }
+ .not_to raise_error
+ end
end