summaryrefslogtreecommitdiff
path: root/spec/unit/provider/exec/shell_spec.rb
diff options
context:
space:
mode:
authorStig Sandbeck Mathisen <ssm@debian.org>2014-09-07 10:14:36 +0200
committerStig Sandbeck Mathisen <ssm@debian.org>2014-09-07 10:14:36 +0200
commitd4b83be375ac1dead058e091191ee7c7b7c24c8a (patch)
treedc825687392ae3068de5b764be60c53122d9e02a /spec/unit/provider/exec/shell_spec.rb
parent229cbb976fe0f70f5f30548b83517b415840f9bb (diff)
parent1681684857c6e39d60d87b0b3520d8783977ceff (diff)
downloadpuppet-upstream/3.7.0.tar.gz
Imported Upstream version 3.7.0upstream/3.7.0
Diffstat (limited to 'spec/unit/provider/exec/shell_spec.rb')
-rwxr-xr-xspec/unit/provider/exec/shell_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/exec/shell_spec.rb b/spec/unit/provider/exec/shell_spec.rb
index 0f0faa594..932f46b6a 100755
--- a/spec/unit/provider/exec/shell_spec.rb
+++ b/spec/unit/provider/exec/shell_spec.rb
@@ -2,8 +2,8 @@
require 'spec_helper'
describe Puppet::Type.type(:exec).provider(:shell), :unless => Puppet.features.microsoft_windows? do
- let :resource do Puppet::Resource.new(:exec, 'foo') end
- let :provider do described_class.new(resource) end
+ let(:resource) { Puppet::Type.type(:exec).new(:title => 'foo', :provider => 'shell') }
+ let(:provider) { described_class.new(resource) }
describe "#run" do
it "should be able to run builtin shell commands" do