diff options
author | Tim Smith <tsmith@chef.io> | 2018-05-16 12:48:05 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-05-16 12:48:35 -0700 |
commit | f3b34f2ad21934b060a95ac59f1573cea7217124 (patch) | |
tree | 266a6a950c7b2ef08bf93be4da41ab769267cd6f /spec/unit/resource/swap_file_spec.rb | |
parent | b69877bb0f1b2aec99f9c0a392d064e2b0d21bda (diff) | |
download | chef-test_defaults.tar.gz |
Add resource specs round 1test_defaults
Auto generated from the resource inspector
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/resource/swap_file_spec.rb')
-rw-r--r-- | spec/unit/resource/swap_file_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/unit/resource/swap_file_spec.rb b/spec/unit/resource/swap_file_spec.rb index 905e12646a..223e07ed4f 100644 --- a/spec/unit/resource/swap_file_spec.rb +++ b/spec/unit/resource/swap_file_spec.rb @@ -24,7 +24,7 @@ describe Chef::Resource::SwapFile do expect(resource.resource_name).to eql(:swap_file) end - it "sets the path as its name" do + it "the path property is the name_property" do expect(resource.path).to eql("swapfile") end @@ -32,9 +32,8 @@ describe Chef::Resource::SwapFile do expect(resource.action).to eql([:create]) end - it "supports :create and :remove actions" do + it "supports :create, :remove actions" do expect { resource.action :create }.not_to raise_error expect { resource.action :remove }.not_to raise_error - expect { resource.action :delete }.to raise_error(ArgumentError) end end |