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