Sha256: 872456b6d5c51678d4bcc4fe0f7d2ed664277d60c218208f58c63cf6e9787ce5

Contents?: true

Size: 594 Bytes

Versions: 34

Compression:

Stored size: 594 Bytes

Contents

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

describe ::Inch::Codebase::Objects do
  before do
    @codebase = test_codebase(:ruby, :simple)
    @objects = @codebase.objects
  end

  it 'should parse all objects' do
    refute @objects.empty?
  end

  it 'should find some objects' do
    refute_nil @objects.find('Foo')
    refute_nil @objects.find('Foo::Bar')
    refute_nil @objects.find('Foo::Bar#method_without_doc')
  end

  it 'should support iteration' do
    sum = 0
    @objects.each do
      sum += 1
    end
    assert_equal @objects.size, sum
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

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