Sha256: 728e70b147556b9bb84176d96452d6c229df4933bedac1454b151628190929ff

Contents?: true

Size: 894 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
inch-0.5.0.rc5 test/unit/config_test.rb
inch-0.5.0.rc4 test/unit/config_test.rb