summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-18 01:02:02 -0700
committerBruce Williams <bruce@codefluency.com>2010-03-18 01:02:02 -0700
commitaf86e9ba814926f9ee236aabc2ca905b5668af70 (patch)
treecc7d51046dbe0421b8f70bc1f1cca006a994fc2c /spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
parentdfb28337ce3c0743ed17ed21f5bab7e1692144bf (diff)
Subversion to use provider example group API for specs
Diffstat (limited to 'spec/unit/puppet/provider/vcsrepo/bzr_spec.rb')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/bzr_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb b/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
index 67f9913..d122e60 100644
--- a/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
@@ -27,14 +27,14 @@ describe_provider :vcsrepo, :bzr, :resource => {:path => '/tmp/vcsrepo'} do
describe 'destroying' do
it "it should remove the directory" do
- FileUtils.expects(:rm_rf).with(resource.value(:path))
+ expects_rm_rf
provider.destroy
end
end
describe "checking existence" do
it "should check for the directory" do
- File.expects(:directory?).with(File.join(resource.value(:path), '.bzr'))
+ expects_directory?(true, File.join(resource.value(:path), '.bzr'))
provider.exists?
end
end