Sha256: 8bb564429a773c15621116f1b228b9379a79fa15b08fc5084a5ef295e87f94f5

Contents?: true

Size: 447 Bytes

Versions: 12

Compression:

Stored size: 447 Bytes

Contents

require File.join(File.dirname(File.dirname(File.dirname(File.expand_path(__FILE__)))), 'spec_helper')
require File.join(File.dirname(File.dirname(File.dirname(File.dirname(File.expand_path(__FILE__))))), 'lib', 'reek', 'core', 'smell_configuration')

include Reek::Core

describe SmellConfiguration do
  it 'returns the default value when key not found' do
    cf = SmellConfiguration.new({})
    cf.value('fred', nil, 27).should == 27
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reek-1.3.1 spec/reek/core/smell_configuration_spec.rb
reek-1.3 spec/reek/core/smell_configuration_spec.rb
reek-1.2.13 spec/reek/core/smell_configuration_spec.rb
reek-1.2.12 spec/reek/core/smell_configuration_spec.rb
reek-1.2.11 spec/reek/core/smell_configuration_spec.rb
reek-1.2.10 spec/reek/core/smell_configuration_spec.rb
reek-1.2.9 spec/reek/core/smell_configuration_spec.rb
reek-1.2.8 spec/reek/core/smell_configuration_spec.rb
reek-1.2.7.3 spec/reek/core/smell_configuration_spec.rb
reek-1.2.7.2 spec/reek/core/smell_configuration_spec.rb
reek-1.2.7.1 spec/reek/core/smell_configuration_spec.rb
reek-1.2.7 spec/reek/core/smell_configuration_spec.rb