Sha256: f8fca71cdb05a3fcd4823cbfaccdeb0f4eb31fe1b9f646a8dddd131ba4bdc05f

Contents?: true

Size: 894 Bytes

Versions: 30

Compression:

Stored size: 894 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

30 entries across 30 versions & 1 rubygems

Version Path
inch-0.7.1 test/unit/config_test.rb
inch-0.7.0 test/unit/config_test.rb
inch-0.6.4 test/unit/config_test.rb
inch-0.6.3 test/unit/config_test.rb
inch-0.6.2 test/unit/config_test.rb
inch-0.6.1 test/unit/config_test.rb
inch-0.6.0 test/unit/config_test.rb
inch-0.6.0.rc6 test/unit/config_test.rb
inch-0.6.0.rc5 test/unit/config_test.rb
inch-0.6.0.rc4 test/unit/config_test.rb
inch-0.6.0.rc3 test/unit/config_test.rb
inch-0.6.0.rc2 test/unit/config_test.rb
inch-0.6.0.rc1 test/unit/config_test.rb
inch-0.5.10 test/unit/config_test.rb
inch-0.5.9 test/unit/config_test.rb
inch-0.5.8 test/unit/config_test.rb
inch-0.5.7 test/unit/config_test.rb
inch-0.5.6 test/unit/config_test.rb
inch-0.5.5 test/unit/config_test.rb
inch-0.5.4 test/unit/config_test.rb