Sha256: 1a46cddae6bf020d314f8dbc2d9f2f53b83735bbddcf9dc7755e2c66a63e1dc2
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
require 'spec_helper' require 'reek/smells/module_initialize' require 'reek/smells/smell_detector_shared' include Reek::Smells describe ModuleInitialize do context 'module' do context 'with method named initialize' do it 'smells' do src = <<-EOF module A def initialize; end end EOF expect(src).to smell_of(ModuleInitialize) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-1.5.1 | spec/reek/smells/module_initialize_spec.rb |
reek-1.5.0 | spec/reek/smells/module_initialize_spec.rb |