Sha256: de25a0062e342f66595aac78734fdb8b7b0963e91a689ae3a4c871677264f7e6

Contents?: true

Size: 519 Bytes

Versions: 5

Compression:

Stored size: 519 Bytes

Contents

require 'spec_helper'
require 'reek/core/smell_repository'

include Reek::Core

describe SmellRepository do
  describe '.smell_types' do
    it 'should include existing smell_types' do
      expect(SmellRepository.smell_types).to include(Reek::Smells::IrresponsibleModule)
      expect(SmellRepository.smell_types).to include(Reek::Smells::TooManyStatements)
    end

    it 'should exclude certain smell_types' do
      expect(SmellRepository.smell_types).to_not include(Reek::Smells::SmellDetector)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reek-2.0.4 spec/reek/core/smell_repository_spec.rb
reek-2.0.3 spec/reek/core/smell_repository_spec.rb
reek-2.0.2 spec/reek/core/smell_repository_spec.rb
reek-2.0.1 spec/reek/core/smell_repository_spec.rb
reek-2.0.0 spec/reek/core/smell_repository_spec.rb