summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider/vcsrepo/dummy_spec.rb
blob: a9458882e856fceec0be6efcd7426b21fd78d1be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'spec_helper'

describe_provider :vcsrepo, :dummy, :resource => {:path => '/tmp/vcsrepo'} do

  context 'dummy' do
    resource_with :source do
      resource_with :ensure => :present do
        context "with nothing doing", :resource => {:revision => 'foo'} do
          it "should raise an exception" do
            proc { provider.working_copy_exists? }.should raise_error(RuntimeError)
          end
        end
      end
    end
  end

end