test/unit/config/codebase_test.rb in inch-0.5.0.rc3 vs test/unit/config/codebase_test.rb in inch-0.5.0.rc4
- old
+ new
@@ -1,17 +1,17 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')
+require File.expand_path(File.dirname(__FILE__) + "/../../test_helper")
describe ::Inch::Config::Codebase do
it "should parse .inch.yml" do
- dir = fixture_path(:simple)
+ dir = fixture_path(:ruby, :simple)
config = Inch::Config::Codebase.new
config.update_via_yaml(dir)
assert config.included_files.empty?
assert config.excluded_files.empty?
end
- it "should parse .inch.yml" do
- dir = fixture_path(:"inch-yml")
+ it "should parse .inch.yml if present" do
+ dir = fixture_path(:ruby, :"inch-yml")
config = Inch::Config::Codebase.new
config.update_via_yaml(dir)
refute config.included_files.empty?
refute config.excluded_files.empty?
end