summaryrefslogtreecommitdiff
path: root/spec/unit/provider_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-07-29 00:30:26 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-07-29 00:30:26 -0700
commit9e85bbdb9419e5b9946ab6d0d37817612e43cc4a (patch)
treeb8d2049f768471e8cba29ab08c64c08a623bd5e0 /spec/unit/provider_spec.rb
parent4edfb5be4391f1b6ad54e472b1721af00fbada5e (diff)
downloadchef-9e85bbdb9419e5b9946ab6d0d37817612e43cc4a.tar.gz
add shell_out to base provider code
Diffstat (limited to 'spec/unit/provider_spec.rb')
-rw-r--r--spec/unit/provider_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/provider_spec.rb b/spec/unit/provider_spec.rb
index 363649ec46..9b89fc1888 100644
--- a/spec/unit/provider_spec.rb
+++ b/spec/unit/provider_spec.rb
@@ -61,6 +61,18 @@ describe Chef::Provider do
@provider = Chef::Provider.new(@resource, @run_context)
end
+ it "should mixin shell_out" do
+ expect(@provider.respond_to?(:shell_out)).to be true
+ end
+
+ it "should mixin shell_out!" do
+ expect(@provider.respond_to?(:shell_out!)).to be true
+ end
+
+ it "should mixin shell_out_with_systems_locale" do
+ expect(@provider.respond_to?(:shell_out_with_systems_locale)).to be true
+ end
+
it "should store the resource passed to new as new_resource" do
@provider.new_resource.should eql(@resource)
end