Sha256: b2c0cf1516737c87c587160ba7a007c068fdfe19892ab04226c008765bcbd020

Contents?: true

Size: 849 Bytes

Versions: 34

Compression:

Stored size: 849 Bytes

Contents

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

describe ::Inch::Language::Ruby::Provider::YARD do
  let(:described_class) { ::Inch::Language::Ruby::Provider::YARD }
  let(:config) { ::Inch::Config.codebase }

  it 'should parse' do
    provider = described_class.parse(fixture_path(:ruby, :simple), config)
    assert !provider.objects.empty?
  end

  it 'should parse too different codebases' do
    fullname = 'Foo#b'

    provider1 = described_class.parse(fixture_path(:ruby, :diff1), config)
    object1 = provider1.objects.find { |o| o.fullname == fullname }

    provider2 = described_class.parse(fixture_path(:ruby, :diff2), config)
    object2 = provider2.objects.find { |o| o.fullname == fullname }

    refute object1.nil?
    refute object2.nil?
    assert object1.object_id != object2.object_id
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 test/unit/language/ruby/provider/yard_test.rb
inch-0.8.0 test/unit/language/ruby/provider/yard_test.rb
inch-0.8.0.rc2 test/unit/language/ruby/provider/yard_test.rb
inch-0.8.0.rc1 test/unit/language/ruby/provider/yard_test.rb
inch-0.7.1 test/unit/language/ruby/provider/yard_test.rb
inch-0.7.0 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.4 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.3 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.2 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.1 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.0 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.0.rc6 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.0.rc5 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.0.rc4 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.0.rc3 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.0.rc2 test/unit/language/ruby/provider/yard_test.rb
inch-0.6.0.rc1 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.10 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.9 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.8 test/unit/language/ruby/provider/yard_test.rb