Sha256: 09438c4d857c1a518d584d395ce72ded8ed0f00c50deed4838e33b706bfcc305

Contents?: true

Size: 893 Bytes

Versions: 4

Compression:

Stored size: 893 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../test_helper')

describe ::Inch::Config do
  it 'should return config for :ruby' do
    config = Inch::Config.for(:ruby)
    refute config.codebase.included_files.empty?
    assert config.codebase.excluded_files.empty?
  end

  it 'should parse .inch.yml if present' do
    dir = fixture_path(:ruby, "inch-yml")
    config = Inch::Config.for(:ruby, dir)
    refute config.codebase.included_files.empty?
    refute config.codebase.excluded_files.empty?

    # Assert that this is another conf, unaltered
    # by the conf loading before
    config = Inch::Config.for(:ruby)
    refute config.codebase.included_files.empty?
    assert config.codebase.excluded_files.empty?
  end

  it 'should return config.evaluation for :ruby' do
    config = Inch::Config.for(:ruby)
    refute_nil config.evaluation.criteria_for(:MethodObject)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 test/unit/config_test.rb
inch-0.8.0 test/unit/config_test.rb
inch-0.8.0.rc2 test/unit/config_test.rb
inch-0.8.0.rc1 test/unit/config_test.rb