From 821c66fe76056784f84376e5beb4d2de629998ed Mon Sep 17 00:00:00 2001 From: Aaron Stone Date: Fri, 19 Oct 2012 00:26:39 -0700 Subject: Use symbols consistently with provider.expects() --- spec/unit/puppet/provider/vcsrepo/git_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/unit/puppet/provider/vcsrepo/git_spec.rb') diff --git a/spec/unit/puppet/provider/vcsrepo/git_spec.rb b/spec/unit/puppet/provider/vcsrepo/git_spec.rb index 7d5d327..83dbff2 100644 --- a/spec/unit/puppet/provider/vcsrepo/git_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/git_spec.rb @@ -7,7 +7,7 @@ describe_provider :vcsrepo, :git, :resource => {:path => '/tmp/vcsrepo'} do resource_with :ensure => :present do context "with a revision that is a remote branch", :resource => {:revision => 'only/remote'} do it "should execute 'git clone' and 'git checkout -b'" do - provider.expects('git').with('clone', resource.value(:source), resource.value(:path)) + provider.expects(:git).with('clone', resource.value(:source), resource.value(:path)) expects_chdir provider.expects(:update_submodules) provider.expects(:git).with('branch', '-a').returns(resource.value(:revision)) @@ -17,7 +17,7 @@ describe_provider :vcsrepo, :git, :resource => {:path => '/tmp/vcsrepo'} do end context "with a revision that is not a remote branch", :resource => {:revision => 'a-commit-or-tag'} do it "should execute 'git clone' and 'git reset --hard'" do - provider.expects('git').with('clone', resource.value(:source), resource.value(:path)) + provider.expects(:git).with('clone', resource.value(:source), resource.value(:path)) expects_chdir provider.expects(:update_submodules) provider.expects(:git).with('branch', '-a').returns(resource.value(:revision)) -- cgit v1.2.3