Sha256: 616febe74ae677f71dfc771de47b9639df15608b4381fef92a83bfb4607aba10

Contents?: true

Size: 446 Bytes

Versions: 17

Compression:

Stored size: 446 Bytes

Contents

require_relative '../../spec_helper'
require_lib 'reek/configuration/default_directive'

RSpec.describe Reek::Configuration::DefaultDirective do
  describe '#add' do
    let(:directives) { {}.extend(described_class) }

    it 'adds a smell configuration' do
      directives.add :UncommunicativeVariableName, enabled: false
      expect(directives).to eq(Reek::SmellDetectors::UncommunicativeVariableName => { enabled: false })
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
reek-4.8.2 spec/reek/configuration/default_directive_spec.rb
reek-4.8.1 spec/reek/configuration/default_directive_spec.rb
reek-4.8.0 spec/reek/configuration/default_directive_spec.rb
reek-4.7.3 spec/reek/configuration/default_directive_spec.rb
reek-4.7.2 spec/reek/configuration/default_directive_spec.rb
reek-4.7.1 spec/reek/configuration/default_directive_spec.rb
reek-4.7.0 spec/reek/configuration/default_directive_spec.rb
reek-4.6.2 spec/reek/configuration/default_directive_spec.rb
reek-4.6.1 spec/reek/configuration/default_directive_spec.rb
reek-4.6.0 spec/reek/configuration/default_directive_spec.rb
reek-4.5.6 spec/reek/configuration/default_directive_spec.rb
reek-4.5.5 spec/reek/configuration/default_directive_spec.rb
reek-4.5.4 spec/reek/configuration/default_directive_spec.rb
reek-4.5.3 spec/reek/configuration/default_directive_spec.rb
reek-4.5.2 spec/reek/configuration/default_directive_spec.rb
reek-4.5.1 spec/reek/configuration/default_directive_spec.rb
reek-4.5.0 spec/reek/configuration/default_directive_spec.rb