diff options
author | Bruce Williams <bruce@codefluency.com> | 2010-03-18 01:12:26 -0700 |
---|---|---|
committer | Bruce Williams <bruce@codefluency.com> | 2010-03-18 01:12:26 -0700 |
commit | 3f36217e58b19664fa065f77e78547f124e254ad (patch) | |
tree | 9344936bbb10a158e3e643d81300fa367766055c /spec/unit/puppet/provider/vcsrepo/bzr_spec.rb | |
parent | e1470a239f2d82d2032b179a0eb4052c4c1c4550 (diff) |
Rename methods context_with(out)? => context_with\1_resource for clarity
Diffstat (limited to 'spec/unit/puppet/provider/vcsrepo/bzr_spec.rb')
-rw-r--r-- | spec/unit/puppet/provider/vcsrepo/bzr_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb b/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb index d122e60..ef72cfb 100644 --- a/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb @@ -3,21 +3,21 @@ require 'pathname'; Pathname.new(__FILE__).realpath.ascend { |x| begin; require describe_provider :vcsrepo, :bzr, :resource => {:path => '/tmp/vcsrepo'} do describe 'creating' do - context_with :source do - context_with :revision do + context_with_resource :source do + context_with_resource :revision do it "should execute 'bzr clone -r' with the revision" do provider.expects(:bzr).with('branch', '-r', resource.value(:revision), resource.value(:source), resource.value(:path)) provider.create end end - context_without :revision do + context_without_resource :revision do it "should just execute 'bzr clone' without a revision" do provider.expects(:bzr).with('branch', resource.value(:source), resource.value(:path)) provider.create end end end - context_without :source do + context_without_resource :source do it "should execute 'bzr init'" do provider.expects(:bzr).with('init', resource.value(:path)) provider.create |