summaryrefslogtreecommitdiff
path: root/spec/unit/chef_fs
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 15:13:58 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 15:13:58 -0700
commitd7478e406d0bdcc15c8122fb7b4e39ad3208c9ac (patch)
treefd7eaa3d882d97d7013c57dda2886b9dbe7dd390 /spec/unit/chef_fs
parente71560df5cebbfb209089c6255e37e65f0e34d95 (diff)
downloadchef-d7478e406d0bdcc15c8122fb7b4e39ad3208c9ac.tar.gz
Style/MethodCallWithoutArgsParentheses
zero args methods don't get parens. this certainly reads better than the inverse. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/chef_fs')
-rw-r--r--spec/unit/chef_fs/config_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/chef_fs/config_spec.rb b/spec/unit/chef_fs/config_spec.rb
index 0adcbbfbfb..f552d454d0 100644
--- a/spec/unit/chef_fs/config_spec.rb
+++ b/spec/unit/chef_fs/config_spec.rb
@@ -23,7 +23,7 @@ require "lib/chef/chef_fs/config.rb"
describe Chef::ChefFS::Config do
describe "initialize" do
it "warns when hosted setups use 'everything'" do
- base_config = Hash.new()
+ base_config = Hash.new
base_config[:repo_mode] = "everything"
base_config[:chef_server_url] = "http://foo.com/organizations/fake_org/"
@@ -34,7 +34,7 @@ describe Chef::ChefFS::Config do
end
it "doesn't warn when hosted setups use 'hosted_everything'" do
- base_config = Hash.new()
+ base_config = Hash.new
base_config[:repo_mode] = "hosted_everything"
base_config[:chef_server_url] = "http://foo.com/organizations/fake_org/"
@@ -45,7 +45,7 @@ describe Chef::ChefFS::Config do
end
it "doesn't warn when non-hosted setups use 'everything'" do
- base_config = Hash.new()
+ base_config = Hash.new
base_config[:repo_mode] = "everything"
base_config[:chef_server_url] = "http://foo.com/"