Sha256: 6a1a862f7579d8fae287665a57d56e116c18fda22a9ae05d88012eb5b01d57cc
Contents?: true
Size: 754 Bytes
Versions: 19
Compression:
Stored size: 754 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../test_helper') describe ::Inch::CodeObject::Provider::YARD do let(:described_class) { ::Inch::CodeObject::Provider::YARD } it "should parse" do provider = described_class.parse(fixture_path(:simple)) assert !provider.objects.empty? end it "should parse too different codebases" do fullname = "Foo#b" provider1 = described_class.parse(fixture_path(:diff1)) object1 = provider1.objects.detect { |o| o.fullname == fullname } provider2 = described_class.parse(fixture_path(:diff2)) object2 = provider2.objects.detect { |o| o.fullname == fullname } refute object1.nil? refute object2.nil? assert object1.object_id != object2.object_id end end
Version data entries
19 entries across 19 versions & 1 rubygems