Sha256: f6e357c42da0299063d334c9a82d05e5442769591a75e7dfb44140c5de72a07f

Contents?: true

Size: 649 Bytes

Versions: 2

Compression:

Stored size: 649 Bytes

Contents

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

describe ::Inch::Codebase::Proxy do
  it "should parse all objects" do
    dir = fixture_path(:ruby, :simple)
    config = Inch::Config::Codebase.new(:ruby, ["lib/**/*.rb"])
    config.object_provider :YARD
    @codebase = Inch::Codebase::Proxy.parse dir, config
    refute_nil @codebase.objects
  end

  it "should parse given paths" do
    dir = fixture_path(:ruby, :simple)
    config = Inch::Config::Codebase.new(:ruby, ["app/**/*.rb"])
    config.object_provider :YARD
    @codebase = Inch::Codebase::Proxy.parse dir, config
    assert @codebase.objects.empty?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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