summaryrefslogtreecommitdiff
path: root/spec/unit/dsl
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-07-28 11:31:06 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-07-28 11:31:06 -0700
commit7b55a32d7ebc259db372080d5a1c42b207f0072d (patch)
tree3a0e346144609833456280e37e32b07f49ef2e08 /spec/unit/dsl
parentd9b191e59a356c07d0976cf6cd6e4d97eac84079 (diff)
downloadchef-7b55a32d7ebc259db372080d5a1c42b207f0072d.tar.gz
add shell_out mixins to recipe DSL
Diffstat (limited to 'spec/unit/dsl')
-rw-r--r--spec/unit/dsl/recipe_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/dsl/recipe_spec.rb b/spec/unit/dsl/recipe_spec.rb
index 14ee30be44..dfaad0b73e 100644
--- a/spec/unit/dsl/recipe_spec.rb
+++ b/spec/unit/dsl/recipe_spec.rb
@@ -46,6 +46,18 @@ describe Chef::DSL::Recipe do
it "responds to recipe_name" do
expect(recipe.recipe_name).to eq(recipe_name)
end
+
+ it "responds to shell_out" do
+ expect(recipe.respond_to?(:shell_out)).to be true
+ end
+
+ it "responds to shell_out" do
+ expect(recipe.respond_to?(:shell_out!)).to be true
+ end
+
+ it "responds to shell_out" do
+ expect(recipe.respond_to?(:shell_out_with_systems_locale)).to be true
+ end
end
context "when included in a class that defines the required interface directly" do