Sha256: 3c60582cf606e84e53f3bb691b499a3ba29d66c33c00c9a9d2da399df1d9c874
Contents?: true
Size: 665 Bytes
Versions: 11
Compression:
Stored size: 665 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper') describe ::Inch::Codebase::Objects do before do dir = fixture_path(:simple) paths = ["lib/**/*.rb"] @codebase = Inch::Codebase::Proxy.new dir, paths @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 |o| sum += 1 end assert_equal @objects.size, sum end end
Version data entries
11 entries across 11 versions & 1 rubygems