Sha256: c4aaf1ef886e4cfaaffcbe0b5edebd3e8ca46052372289fc132293801134d34b
Contents?: true
Size: 587 Bytes
Versions: 6
Compression:
Stored size: 587 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../test_helper") describe ::Inch::Codebase::Objects do before do @codebase = test_codebase(: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
6 entries across 6 versions & 1 rubygems