spec/rubocop/cop/rspec/shared_context_spec.rb in rubocop-rspec-1.19.0 vs spec/rubocop/cop/rspec/shared_context_spec.rb in rubocop-rspec-1.20.0
- old
+ new
@@ -1,9 +1,9 @@
RSpec.describe RuboCop::Cop::RSpec::SharedContext do
subject(:cop) { described_class.new }
- context 'shared_context' do
+ describe 'shared_context' do
it 'does not register an offense for empty contexts' do
expect_no_offenses(<<-RUBY)
shared_context 'empty' do
end
RUBY
@@ -53,10 +53,10 @@
end
RUBY
end
end
- context 'shared_examples' do
+ describe 'shared_examples' do
it 'does not register an offense for empty examples' do
expect_no_offenses(<<-RUBY)
shared_examples 'empty' do
end
RUBY