diff options
author | Bruce Williams <bruce@codefluency.com> | 2010-03-18 00:16:43 -0700 |
---|---|---|
committer | Bruce Williams <bruce@codefluency.com> | 2010-03-18 00:16:43 -0700 |
commit | dc3e0ee4fb56c5704925253d8727d6fdd343cf5c (patch) | |
tree | fb4971773c268521721b46ef0d2ec5e9df380c40 /spec/support | |
parent | 736c094145ff6f86d2bfdc8cecf32da8180d95fe (diff) |
CVS uses provider example group for specs
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/vcsrepo_helpers.rb | 9 |
1 files changed, 4 insertions, 5 deletions
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 |