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.5.7 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.6 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.5 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.4 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.3 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.2 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.1 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.0 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.0.rc11 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.0.rc10 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.0.rc9 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.0.rc8 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.0.rc7 test/unit/language/ruby/provider/yard_test.rb
inch-0.5.0.rc6 test/unit/language/ruby/provider/yard_test.rb