summaryrefslogtreecommitdiff
path: root/spec/unit/resource/git_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/git_spec.rb')
-rw-r--r--spec/unit/resource/git_spec.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/unit/resource/git_spec.rb b/spec/unit/resource/git_spec.rb
index 95a30c28a4..da7aee1014 100644
--- a/spec/unit/resource/git_spec.rb
+++ b/spec/unit/resource/git_spec.rb
@@ -17,9 +17,17 @@
#
require 'spec_helper'
+require 'support/shared/unit/resource/static_provider_resolution'
describe Chef::Resource::Git do
+ static_provider_resolution(
+ resource: Chef::Resource::Git,
+ provider: Chef::Provider::Git,
+ name: :git,
+ action: :sync,
+ )
+
before(:each) do
@git = Chef::Resource::Git.new("my awesome webapp")
end
@@ -29,10 +37,6 @@ describe Chef::Resource::Git do
@git.should be_an_instance_of(Chef::Resource::Git)
end
- it "uses the git provider" do
- @git.provider.should eql(Chef::Provider::Git)
- end
-
it "uses aliases revision as branch" do
@git.branch "HEAD"
@git.revision.should eql("HEAD")