diff options
author | Bruce Williams <bruce@codefluency.com> | 2010-03-18 01:52:34 -0700 |
---|---|---|
committer | Bruce Williams <bruce@codefluency.com> | 2010-03-18 01:52:34 -0700 |
commit | 94800be9501c9831c6b9317f52468d24c76d57b9 (patch) | |
tree | 158a22297e692a16ba72af4681ffa6437fca5e85 /spec/unit/puppet/provider/vcsrepo/cvs_spec.rb | |
parent | e7d7e2217d54d8c87dd9897f4fe1bfbdb5038d02 (diff) |
Move support file
Diffstat (limited to 'spec/unit/puppet/provider/vcsrepo/cvs_spec.rb')
-rw-r--r-- | spec/unit/puppet/provider/vcsrepo/cvs_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb b/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb index 32f4bbb..cc195eb 100644 --- a/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/cvs_spec.rb @@ -4,7 +4,7 @@ describe_provider :vcsrepo, :cvs, :resource => {:path => '/tmp/vcsrepo'} do describe 'creating' do context "with a source", :resource => {:source => ':ext:source@example.com:/foo/bar'} do - context_with_resource :revision do + resource_with :revision do it "should execute 'cvs checkout' and 'cvs update -r'" do expects_chdir expects_chdir(File.dirname(resource.value(:path))) @@ -14,7 +14,7 @@ describe_provider :vcsrepo, :cvs, :resource => {:path => '/tmp/vcsrepo'} do end end - context_without_resource :revision do + resource_without :revision do it "should just execute 'cvs checkout' without a revision" do provider.expects(:cvs).with('-d', resource.value(:source), 'checkout', '-d', File.basename(resource.value(:path)), File.basename(resource.value(:source))) provider.create @@ -45,14 +45,14 @@ describe_provider :vcsrepo, :cvs, :resource => {:path => '/tmp/vcsrepo'} do end describe "checking existence" do - context_with_resource :source do + resource_with :source do it "should check for the CVS directory" do File.expects(:directory?).with(File.join(resource.value(:path), 'CVS')) provider.exists? end end - context_without_resource :source do + resource_without :source do it "should check for the CVSROOT directory" do File.expects(:directory?).with(File.join(resource.value(:path), 'CVSROOT')) provider.exists? |