summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2013-07-14 20:46:55 -0700
committerAaron Stone <aaron@serendipity.cx>2013-07-14 20:46:55 -0700
commitf0bac7e47e274262b34bb37d1136ee3f6da868e4 (patch)
treea252736d84fdea9ee2e69691b34428b8d42a305c /spec/unit/puppet/provider
parentaa24b2d25da89f4598dcdfc0e45bcdcb204c9ab3 (diff)
downloadpuppet-vcsrepo-f0bac7e47e274262b34bb37d1136ee3f6da868e4.tar.gz
puppet-vcsrepo-f0bac7e47e274262b34bb37d1136ee3f6da868e4.tar.bz2
Fix bzr specs broken for a while
Diffstat (limited to 'spec/unit/puppet/provider')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/bzr_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb b/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
index e1804de..c0231e9 100644
--- a/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
@@ -81,9 +81,9 @@ describe_provider :vcsrepo, :bzr, :resource => {:path => '/tmp/vcsrepo'} do
describe "setting the revision property" do
it "should use 'bzr update -r' with the revision" do
- revision = 'somerev'
- provider.expects(:bzr).with('update', '-r', revision, resource.value(:path))
- provider.revision = revision
+ expects_chdir
+ provider.expects(:bzr).with('update', '-r', 'somerev')
+ provider.revision = 'somerev'
end
end