Sha256: e5f5384fdb4d57ba09dcd1c86a088cfc4ce3360c0962a285608dc8c069bae782

Contents?: true

Size: 423 Bytes

Versions: 34

Compression:

Stored size: 423 Bytes

Contents

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

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

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
reek-4.4.1 spec/reek/configuration/default_directive_spec.rb
reek-4.4.0 spec/reek/configuration/default_directive_spec.rb
reek-4.3.0 spec/reek/configuration/default_directive_spec.rb
reek-4.2.5 spec/reek/configuration/default_directive_spec.rb
reek-4.2.4 spec/reek/configuration/default_directive_spec.rb
reek-4.2.3 spec/reek/configuration/default_directive_spec.rb
reek-4.2.2 spec/reek/configuration/default_directive_spec.rb
reek-4.2.1 spec/reek/configuration/default_directive_spec.rb
reek-4.2.0 spec/reek/configuration/default_directive_spec.rb
reek-4.1.1 spec/reek/configuration/default_directive_spec.rb
reek-4.1.0 spec/reek/configuration/default_directive_spec.rb
reek-4.0.5 spec/reek/configuration/default_directive_spec.rb
reek-4.0.4 spec/reek/configuration/default_directive_spec.rb
reek-4.0.3 spec/reek/configuration/default_directive_spec.rb
reek-4.0.2 spec/reek/configuration/default_directive_spec.rb
reek-4.0.1 spec/reek/configuration/default_directive_spec.rb
reek-4.0.0 spec/reek/configuration/default_directive_spec.rb
reek-4.0.0.pre1 spec/reek/configuration/default_directive_spec.rb
reek-3.11 spec/reek/configuration/default_directive_spec.rb
reek-3.10.2 spec/reek/configuration/default_directive_spec.rb