Sha256: b280a1081171cfb88c74c3079260389a70ead5145089c58b493fa6ea82a713de
Contents?: true
Size: 653 Bytes
Versions: 3
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' require 'reek/core/module_context' require 'reek/core/stop_context' include Reek::Core describe ModuleContext do it 'should report module name for smell in method' do expect('module Fred; def simple(x) x + 1; end; end').to reek_of(:UncommunicativeParameterName, /x/, /simple/) end it 'should not report module with empty class' do expect('# module for test module Fred # module for test class Jim; end; end').not_to reek end end describe ModuleContext do it 'should recognise global constant' do expect('# module for test module ::Global # module for test class Inside; end; end').not_to reek end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reek-1.5.1 | spec/reek/core/module_context_spec.rb |
reek-1.5.0 | spec/reek/core/module_context_spec.rb |
reek-1.4.0 | spec/reek/core/module_context_spec.rb |