diff options
author | Aaron Stone <aaron@serendipity.cx> | 2013-07-24 21:55:04 -0700 |
---|---|---|
committer | Aaron Stone <aaron@serendipity.cx> | 2013-07-25 13:57:42 -0700 |
commit | c281f10efde83847f4df822010c32e03cda809b7 (patch) | |
tree | 9d1a13d61ef332977361761ad09a89078f8162fe /spec/unit/puppet | |
parent | 8036ceca544730d4192ea31b750d200392691166 (diff) | |
download | puppet-vcsrepo-c281f10efde83847f4df822010c32e03cda809b7.tar.gz puppet-vcsrepo-c281f10efde83847f4df822010c32e03cda809b7.tar.bz2 |
Update specs for svn switch
Diffstat (limited to 'spec/unit/puppet')
-rw-r--r-- | spec/unit/puppet/provider/vcsrepo/svn_spec.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/svn_spec.rb b/spec/unit/puppet/provider/vcsrepo/svn_spec.rb index a533b7c..e7e25d7 100644 --- a/spec/unit/puppet/provider/vcsrepo/svn_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/svn_spec.rb @@ -66,14 +66,16 @@ describe_provider :vcsrepo, :svn, :resource => {:path => '/tmp/vcsrepo'} do end describe "setting the revision property" do - before do - @revision = '30' - end - it "should use 'svn update'" do - expects_chdir - provider.expects(:svn).with('--non-interactive', 'update', '-r', @revision) - provider.revision = @revision - end + resource_with :source do + before do + @revision = '30' + end + it "should use 'svn switch'" do + expects_chdir + provider.expects(:svn).with('--non-interactive', 'switch', '-r', @revision, 'an-unimportant-value') + provider.revision = @revision + end + end end end |