summaryrefslogtreecommitdiff
path: root/spec/unit/resource/perl_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/perl_spec.rb')
-rw-r--r--spec/unit/resource/perl_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/resource/perl_spec.rb b/spec/unit/resource/perl_spec.rb
index f8e11c465c..4e43f92054 100644
--- a/spec/unit/resource/perl_spec.rb
+++ b/spec/unit/resource/perl_spec.rb
@@ -33,4 +33,12 @@ describe Chef::Resource::Perl do
it "has an interpreter of perl" do
expect(resource.interpreter).to eql("perl")
end
+
+ it "sets the default action as :run" do
+ expect(resource.action).to eql([:run])
+ end
+
+ it "supports :run actions" do
+ expect { resource.action :run }.not_to raise_error
+ end
end