test/unit/codebase/proxy_test.rb in inch-0.5.0.rc3 vs test/unit/codebase/proxy_test.rb in inch-0.5.0.rc4
- old
+ new
@@ -1,17 +1,19 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')
+require File.expand_path(File.dirname(__FILE__) + "/../../test_helper")
describe ::Inch::Codebase::Proxy do
it "should parse all objects" do
- dir = fixture_path(:simple)
- config = Inch::Config::Codebase.new(["lib/**/*.rb"])
+ dir = fixture_path(:ruby, :simple)
+ config = Inch::Config::Codebase.new(:ruby, ["lib/**/*.rb"])
+ config.object_provider :YARD
@codebase = Inch::Codebase::Proxy.parse dir, config
refute_nil @codebase.objects
end
it "should parse given paths" do
- dir = fixture_path(:simple)
- config = Inch::Config::Codebase.new(["app/**/*.rb"])
+ dir = fixture_path(:ruby, :simple)
+ config = Inch::Config::Codebase.new(:ruby, ["app/**/*.rb"])
+ config.object_provider :YARD
@codebase = Inch::Codebase::Proxy.parse dir, config
assert @codebase.objects.empty?
end
end