summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorbyplayer <byplayer100@gmail.com>2021-07-26 13:25:06 +0900
committerbyplayer <byplayer100@gmail.com>2021-07-26 13:26:38 +0900
commit5ccb409740a064bb55b2ce80eb099c16fce8a4bf (patch)
treeb7f956734195bb3bf359abd7ed94e96c23e40711 /spec
parent436ee6c984e6626082779d8c89d10d357081b8bf (diff)
downloadchef-5ccb409740a064bb55b2ce80eb099c16fce8a4bf.tar.gz
Remove duplicated tests
To clarify what I want to do test in this change I remove duplicated test based on @tas50 review comment. Signed-off-by: byplayer <byplayer100@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/homebrew_cask_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/unit/resource/homebrew_cask_spec.rb b/spec/unit/resource/homebrew_cask_spec.rb
index 5b6ddac7d2..0d2a774754 100644
--- a/spec/unit/resource/homebrew_cask_spec.rb
+++ b/spec/unit/resource/homebrew_cask_spec.rb
@@ -43,42 +43,16 @@ describe Chef::Resource::HomebrewCask do
context 'name with high fun' do
let(:resource) { Chef::Resource::HomebrewCask.new("fakey-fakerton") }
- it "has a resource name of :homebrew_cask" do
- expect(resource.resource_name).to eql(:homebrew_cask)
- end
-
it "the cask_name property is the name_property" do
expect(resource.cask_name).to eql("fakey-fakerton")
end
-
- it "sets the default action as :install" do
- expect(resource.action).to eql([:install])
- end
-
- it "supports :install, :remove actions" do
- expect { resource.action :install }.not_to raise_error
- expect { resource.action :remove }.not_to raise_error
- end
end
context 'name with at mark' do
let(:resource) { Chef::Resource::HomebrewCask.new("fakey-fakerton@10") }
- it "has a resource name of :homebrew_cask" do
- expect(resource.resource_name).to eql(:homebrew_cask)
- end
-
it "the cask_name property is the name_property" do
expect(resource.cask_name).to eql("fakey-fakerton@10")
end
-
- it "sets the default action as :install" do
- expect(resource.action).to eql([:install])
- end
-
- it "supports :install, :remove actions" do
- expect { resource.action :install }.not_to raise_error
- expect { resource.action :remove }.not_to raise_error
- end
end
end