spec/unit/provider/exec/posix_spec.rb in puppet-3.1.1 vs spec/unit/provider/exec/posix_spec.rb in puppet-3.2.0.rc1
- old
+ new
@@ -84,10 +84,10 @@
expect { provider.run(filename) }.to raise_error(ArgumentError, "Could not find command '#{filename}'")
end
end
it "should not be able to execute shell builtins" do
- provider.resource[:path] = ['']
+ provider.resource[:path] = ['/bogus/bin']
expect { provider.run("cd ..") }.to raise_error(ArgumentError, "Could not find command 'cd'")
end
it "should execute the command if the command given includes arguments or subcommands" do
provider.resource[:path] = ['/bogus/bin']