lib/macros4cuke/cli/cmd-line.rb in macros4cuke-0.5.03 vs lib/macros4cuke/cli/cmd-line.rb in macros4cuke-0.5.06
- old
+ new
@@ -112,10 +112,10 @@
# Given the project path, retrieve its /features dir.
def validated_feature_path(theProjectPath)
dirs = [theProjectPath, 'features', 'support']
feature_path = dirs.reduce(Pathname.getwd) do |path, dir_name|
- path = path + dir_name
+ path += dir_name
unless path.exist?
fail DirectoryNotFound.new(path.relative_path_from(Pathname.getwd))
end
path
end