Sha256: a5fef514326ea831db4311c6391afe08750c61780a7b2c97fc5f22376586cb04

Contents?: true

Size: 595 Bytes

Versions: 34

Compression:

Stored size: 595 Bytes

Contents

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

describe ::Inch::API::Get do
  before do
    @codebase = test_codebase(:ruby, :simple)
  end

  it 'should work' do
    @object_names = ['Foo', 'Foo::Bar']
    @context = ::Inch::API::Get.new @codebase, @object_names
    assert_equal 2, @context.objects.size
    refute @context.object.nil?
    refute @context.grade_lists.empty?
  end

  it 'should work with wildcard' do
    @object_names = ['Foo', 'Foo::Bar#']
    @context = ::Inch::API::Get.new @codebase, @object_names
    assert @context.objects.size > 2
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

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