summaryrefslogtreecommitdiff
path: root/spec/support/vcsrepo_helpers.rb
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-17 20:23:22 -0700
committerBruce Williams <bruce@codefluency.com>2010-03-17 20:23:22 -0700
commit532cfbb18195ba759574e91dc6bd360978045e75 (patch)
treed1dacdf10ad4106671ceb01ae2af7130c247da5d /spec/support/vcsrepo_helpers.rb
parent4b8e7074e62900ed796cc05bb67a7561f40f899a (diff)
Build ProviderExampleGroup for refactored provider tests
Diffstat (limited to 'spec/support/vcsrepo_helpers.rb')
-rw-r--r--spec/support/vcsrepo_helpers.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/support/vcsrepo_helpers.rb b/spec/support/vcsrepo_helpers.rb
new file mode 100644
index 0000000..e0b9beb
--- /dev/null
+++ b/spec/support/vcsrepo_helpers.rb
@@ -0,0 +1,12 @@
+module VcsrepoHelpers
+
+ def expects_chdir
+ Dir.expects(:chdir).with(resource.value(:path)).at_least_once.yields
+ end
+
+ def expects_mkdir
+ Dir.expects(:mkdir).with(resource.value(:path)).at_least_once
+ end
+
+
+end