Sha256: d24ec4d66ceadd6cfcabdf24dd80d9d49ac84b8c36ad568616148aa0ed3c7849
Contents?: true
Size: 730 Bytes
Versions: 34
Compression:
Stored size: 730 Bytes
Contents
require_relative '../../spec_helper' require_lib 'reek/smells/smell_detector' require_lib 'reek/smells/smell_repository' RSpec.describe Reek::Smells::SmellRepository do describe '.smell_types' do let(:smell_types) { described_class.smell_types } it 'should include existing smell_types' do expect(smell_types).to include(Reek::Smells::IrresponsibleModule) expect(smell_types).to include(Reek::Smells::TooManyStatements) end it 'should exclude the smell detector base class' do expect(smell_types).to_not include(Reek::Smells::SmellDetector) end it 'should return the smell types in alphabetic order' do expect(smell_types).to eq(smell_types.sort_by(&:name)) end end end
Version data entries
34 entries across 34 versions & 1 rubygems