summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavin Taddeo <davin@chef.io>2020-06-15 20:12:39 -0400
committerDavin Taddeo <davin@chef.io>2020-06-15 20:12:39 -0400
commit12f3e9b66a34f76a43547caed94191c06e3aa5f8 (patch)
treef4e5b26758bb86a24dd5e6d180bacb2cc57ec7b3 /spec
parent557146fd421cfff6c047a55dbcd401f52f5e69e6 (diff)
downloadchef-12f3e9b66a34f76a43547caed94191c06e3aa5f8.tar.gz
unit test fix and chefstyle fixes
Signed-off-by: Davin Taddeo <davin@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/windows_firewall_policy_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/unit/resource/windows_firewall_policy_spec.rb b/spec/unit/resource/windows_firewall_policy_spec.rb
index 7b548c950a..347234121c 100644
--- a/spec/unit/resource/windows_firewall_policy_spec.rb
+++ b/spec/unit/resource/windows_firewall_policy_spec.rb
@@ -36,39 +36,39 @@ describe Chef::Resource::WindowsFirewallProfile do
it "the resource's default_inbound_action property only strings Block, Allow, or NotConfigured" do
expect { resource.default_inbound_action "AllowSome" }.to raise_error(ArgumentError)
- expect { resource.default_inbound_action "Block"}.not_to raise_error
+ expect { resource.default_inbound_action "Block" }.not_to raise_error
end
it "the resource's default_outbound_action property only accepts strings Block, Allow, or NotConfigured" do
expect { resource.default_outbound_action "BlockMost" }.to raise_error(ArgumentError)
- expect { resource.default_outbound_action "Allow"}.not_to raise_error
+ expect { resource.default_outbound_action "Allow" }.not_to raise_error
end
it "the resource's allow_inbound_rules property only accepts strings True, False, or NotConfigured" do
expect { resource.allow_inbound_rules "Yes" }.to raise_error(ArgumentError)
- expect { resource.allow_inbound_rules "True"}.not_to raise_error
+ expect { resource.allow_inbound_rules "True" }.not_to raise_error
end
it "the resource's allow_local_firewall_rules property only accepts strings True, False, or NotConfigured" do
expect { resource.allow_local_firewall_rules "No" }.to raise_error(ArgumentError)
- expect { resource.allow_local_firewall_rules "False"}.not_to raise_error
+ expect { resource.allow_local_firewall_rules "False" }.not_to raise_error
end
it "the resource's allow_local_ipsec_rules property only accepts strings True, False, or NotConfigured" do
expect { resource.allow_local_ipsec_rules "Yes" }.to raise_error(ArgumentError)
- expect { resource.allow_local_ipsec_rules "True"}.not_to raise_error
+ expect { resource.allow_local_ipsec_rules "True" }.not_to raise_error
end
it "the resource's allow_user_apps property only accepts strings True, False, or NotConfigured" do
expect { resource.allow_user_apps "No" }.to raise_error(ArgumentError)
- expect { resource.allow_user_apps "False"}.not_to raise_error
+ expect { resource.allow_user_apps "False" }.not_to raise_error
end
it "the resource's allow_user_ports property only accepts strings True, False, or NotConfigured" do
- expect { resource.allow_user_ports nil }.to raise_error(ArgumentError)
- expect { resource.allow_user_ports "NotConfigured"}.not_to raise_error
+ expect { resource.allow_user_ports false }.to raise_error(ArgumentError)
+ expect { resource.allow_user_ports "NotConfigured" }.not_to raise_error
end
it "the resource's allow_unicast_response property only accepts strings True, False, or NotConfigured" do
expect { resource.allow_unicast_response true }.to raise_error(ArgumentError)
- expect { resource.allow_unicast_response "True"}.not_to raise_error
+ expect { resource.allow_unicast_response "True" }.not_to raise_error
end
it "the resource's display_notification property only accepts strings True, False, or NotConfigured" do
expect { resource.display_notification false }.to raise_error(ArgumentError)
- expect { resource.display_notification "False"}.not_to raise_error
+ expect { resource.display_notification "False" }.not_to raise_error
end
it "sets the default action as :configure" do