From dc3e0ee4fb56c5704925253d8727d6fdd343cf5c Mon Sep 17 00:00:00 2001 From: Bruce Williams Date: Thu, 18 Mar 2010 00:16:43 -0700 Subject: CVS uses provider example group for specs --- spec/support/vcsrepo_helpers.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'spec/support/vcsrepo_helpers.rb') diff --git a/spec/support/vcsrepo_helpers.rb b/spec/support/vcsrepo_helpers.rb index e0b9beb..f631db0d 100644 --- a/spec/support/vcsrepo_helpers.rb +++ b/spec/support/vcsrepo_helpers.rb @@ -1,12 +1,11 @@ module VcsrepoHelpers - def expects_chdir - Dir.expects(:chdir).with(resource.value(:path)).at_least_once.yields + def expects_chdir(path = resource.value(:path)) + Dir.expects(:chdir).with(path).at_least_once.yields end - def expects_mkdir - Dir.expects(:mkdir).with(resource.value(:path)).at_least_once + def expects_mkdir(path = resource.value(:path)) + Dir.expects(:mkdir).with(path).at_least_once end - end -- cgit v1.2.3