spec/rubocop/cop/style/module_function_spec.rb in rubocop-0.12.0 vs spec/rubocop/cop/style/module_function_spec.rb in rubocop-0.13.0
- old
+ new
@@ -4,10 +4,10 @@
module Rubocop
module Cop
module Style
describe ModuleFunction do
- let(:cop) { described_class.new }
+ subject(:cop) { described_class.new }
it 'registers an offence for extend self in module' do
inspect_source(cop,
['module Test',
' extend self',