summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-04-10 13:19:53 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-10 13:19:53 -0700
commit79aef073a21af23822c6e45fdcae17ea9fec0c64 (patch)
tree5f825a9018687611116c8103f6b90c33c5645159
parent2a236bab3d327e17462a6ffb93eb1b4c2eb82c33 (diff)
downloadchef-macos-resources.tar.gz
Remove a single contextmacos-resources
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/resource/plist_spec.rb36
1 files changed, 17 insertions, 19 deletions
diff --git a/spec/unit/resource/plist_spec.rb b/spec/unit/resource/plist_spec.rb
index b7e281b1d9..b344120355 100644
--- a/spec/unit/resource/plist_spec.rb
+++ b/spec/unit/resource/plist_spec.rb
@@ -125,30 +125,28 @@ describe Chef::Resource::Plist do
end
describe "#type_to_commandline_string" do
- context "When given a certain data type" do
- it "returns the required boolean entry type as a string" do
- expect(resource.type_to_commandline_string(true)).to eq "bool"
- end
+ it "returns the required boolean entry type as a string" do
+ expect(resource.type_to_commandline_string(true)).to eq "bool"
+ end
- it "returns the required array entry type as a string" do
- expect(resource.type_to_commandline_string(%w{foo bar})).to eq "array"
- end
+ it "returns the required array entry type as a string" do
+ expect(resource.type_to_commandline_string(%w{foo bar})).to eq "array"
+ end
- it "returns the required dictionary entry type as a string" do
- expect(resource.type_to_commandline_string("baz" => "qux")).to eq "dict"
- end
+ it "returns the required dictionary entry type as a string" do
+ expect(resource.type_to_commandline_string("baz" => "qux")).to eq "dict"
+ end
- it "returns the required string entry type as a string" do
- expect(resource.type_to_commandline_string("quux")).to eq "string"
- end
+ it "returns the required string entry type as a string" do
+ expect(resource.type_to_commandline_string("quux")).to eq "string"
+ end
- it "returns the required integer entry type as a string" do
- expect(resource.type_to_commandline_string(1)).to eq "integer"
- end
+ it "returns the required integer entry type as a string" do
+ expect(resource.type_to_commandline_string(1)).to eq "integer"
+ end
- it "returns the required float entry type as a string" do
- expect(resource.type_to_commandline_string(1.0)).to eq "float"
- end
+ it "returns the required float entry type as a string" do
+ expect(resource.type_to_commandline_string(1.0)).to eq "float"
end
end
end