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