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.9.0.rc1 test/unit/codebase/proxy_test.rb
inch-0.8.0 test/unit/codebase/proxy_test.rb
inch-0.8.0.rc2 test/unit/codebase/proxy_test.rb
inch-0.8.0.rc1 test/unit/codebase/proxy_test.rb
inch-0.7.1 test/unit/codebase/proxy_test.rb
inch-0.7.0 test/unit/codebase/proxy_test.rb
inch-0.6.4 test/unit/codebase/proxy_test.rb
inch-0.6.3 test/unit/codebase/proxy_test.rb
inch-0.6.2 test/unit/codebase/proxy_test.rb
inch-0.6.1 test/unit/codebase/proxy_test.rb
inch-0.6.0 test/unit/codebase/proxy_test.rb
inch-0.6.0.rc6 test/unit/codebase/proxy_test.rb
inch-0.6.0.rc5 test/unit/codebase/proxy_test.rb
inch-0.6.0.rc4 test/unit/codebase/proxy_test.rb
inch-0.6.0.rc3 test/unit/codebase/proxy_test.rb
inch-0.6.0.rc2 test/unit/codebase/proxy_test.rb
inch-0.6.0.rc1 test/unit/codebase/proxy_test.rb
inch-0.5.10 test/unit/codebase/proxy_test.rb
inch-0.5.9 test/unit/codebase/proxy_test.rb
inch-0.5.8 test/unit/codebase/proxy_test.rb