spec/rubocop/cop/rspec/hook_argument_spec.rb in rubocop-rspec-1.12.0 vs spec/rubocop/cop/rspec/hook_argument_spec.rb in rubocop-rspec-1.13.0
- old
+ new
@@ -1,14 +1,12 @@
# encoding: utf-8
-describe RuboCop::Cop::RSpec::HookArgument, :config do
+RSpec.describe RuboCop::Cop::RSpec::HookArgument, :config do
subject(:cop) { described_class.new(config) }
let(:cop_config) do
{ 'EnforcedStyle' => enforced_style }
end
-
- let(:enforced_style) { :implicit }
shared_examples 'ignored hooks' do
it 'ignores :context and :suite' do
expect_no_violations(<<-RUBY)
before(:suite) { true }