diff options
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 |