diff options
author | Tim Smith <tsmith@chef.io> | 2018-05-16 12:48:05 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-05-16 15:45:33 -0700 |
commit | 69687a927da48b169262e3b961fd2c12e6723574 (patch) | |
tree | a0744c8401a4ae32ed489c65a3cfd57d3b784b67 /spec/unit/resource/windows_path_spec.rb | |
parent | b69877bb0f1b2aec99f9c0a392d064e2b0d21bda (diff) | |
download | chef-69687a927da48b169262e3b961fd2c12e6723574.tar.gz |
Add additional resource specs
Auto generated from the resource inspector
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/resource/windows_path_spec.rb')
-rw-r--r-- | spec/unit/resource/windows_path_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/unit/resource/windows_path_spec.rb b/spec/unit/resource/windows_path_spec.rb index efe55d1cb6..423d10aa61 100644 --- a/spec/unit/resource/windows_path_spec.rb +++ b/spec/unit/resource/windows_path_spec.rb @@ -19,23 +19,22 @@ require "spec_helper" describe Chef::Resource::WindowsPath do - let(:resource) { Chef::Resource::WindowsPath.new("some_path") } + let(:resource) { Chef::Resource::WindowsPath.new("fakey_fakerton") } it "sets resource name as :windows_path" do expect(resource.resource_name).to eql(:windows_path) end it "the path property is the name_property" do - expect(resource.path).to eql("some_path") + expect(resource.path).to eql("fakey_fakerton") end it "sets the default action as :add" do expect(resource.action).to eql([:add]) end - it "supports :add and :remove actions" do + it "supports :add, :remove actions" do expect { resource.action :add }.not_to raise_error expect { resource.action :remove }.not_to raise_error - expect { resource.action :delete }.to raise_error(ArgumentError) end end |