From 3f36217e58b19664fa065f77e78547f124e254ad Mon Sep 17 00:00:00 2001 From: Bruce Williams Date: Thu, 18 Mar 2010 01:12:26 -0700 Subject: Rename methods context_with(out)? => context_with\1_resource for clarity --- spec/unit/puppet/provider/vcsrepo/hg_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/unit/puppet/provider/vcsrepo/hg_spec.rb') diff --git a/spec/unit/puppet/provider/vcsrepo/hg_spec.rb b/spec/unit/puppet/provider/vcsrepo/hg_spec.rb index a79571a..9aebb6b 100644 --- a/spec/unit/puppet/provider/vcsrepo/hg_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/hg_spec.rb @@ -3,8 +3,8 @@ require 'pathname'; Pathname.new(__FILE__).realpath.ascend { |x| begin; require describe_provider :vcsrepo, :hg, :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 'hg clone -u' with the revision" do provider.expects(:hg).with('clone', '-u', resource.value(:revision), @@ -14,7 +14,7 @@ describe_provider :vcsrepo, :hg, :resource => {:path => '/tmp/vcsrepo'} do end end - context_without :revision do + context_without_resource :revision do it "should just execute 'hg clone' without a revision" do provider.expects(:hg).with('clone', resource.value(:source), resource.value(:path)) provider.create -- cgit v1.2.3