adding new vcsrepo

This commit is contained in:
2013-07-16 10:50:30 -04:00
parent 5ff96a078b
commit 266b0722f1
49 changed files with 2262 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
module FilesystemHelpers
def expects_chdir(path = resource.value(:path))
Dir.expects(:chdir).with(path).at_least_once.yields
end
def expects_mkdir(path = resource.value(:path))
Dir.expects(:mkdir).with(path).at_least_once
end
def expects_rm_rf(path = resource.value(:path))
FileUtils.expects(:rm_rf).with(path)
end
def expects_directory?(returns = true, path = resource.value(:path))
File.expects(:directory?).with(path).returns(returns)
end
end