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