Sha256: 70e2752ce0af402b1d23d80a174f55d95bd657cc706edd19794e523d83dfc5c2

Contents?: true

Size: 649 Bytes

Versions: 34

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

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.5.7 test/unit/codebase/proxy_test.rb
inch-0.5.6 test/unit/codebase/proxy_test.rb
inch-0.5.5 test/unit/codebase/proxy_test.rb
inch-0.5.4 test/unit/codebase/proxy_test.rb
inch-0.5.3 test/unit/codebase/proxy_test.rb
inch-0.5.2 test/unit/codebase/proxy_test.rb
inch-0.5.1 test/unit/codebase/proxy_test.rb
inch-0.5.0 test/unit/codebase/proxy_test.rb
inch-0.5.0.rc11 test/unit/codebase/proxy_test.rb
inch-0.5.0.rc10 test/unit/codebase/proxy_test.rb
inch-0.5.0.rc9 test/unit/codebase/proxy_test.rb
inch-0.5.0.rc8 test/unit/codebase/proxy_test.rb
inch-0.5.0.rc7 test/unit/codebase/proxy_test.rb
inch-0.5.0.rc6 test/unit/codebase/proxy_test.rb