summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-02-15 15:10:07 +0000
committerThom May <thom@chef.io>2018-02-15 15:19:08 +0000
commit0f8280aa100aa60238f39f9df66ecba700fdc16f (patch)
treee46d909ba0aaff765b259f9739628cafd14c40f8 /spec
parent0ac00a8e04dcdf4298c68d92d047eb1c2cf04351 (diff)
downloadchef-zero-0f8280aa100aa60238f39f9df66ecba700fdc16f.tar.gz
chefstyle 0.6
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/run_oc_pedant.rb4
-rw-r--r--spec/search_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/run_oc_pedant.rb b/spec/run_oc_pedant.rb
index 0ee94b5..068cb4d 100644
--- a/spec/run_oc_pedant.rb
+++ b/spec/run_oc_pedant.rb
@@ -49,12 +49,12 @@ def start_cheffs_server(chef_repo_path)
require "chef/chef_fs/chef_fs_data_store"
require "chef_zero/server"
- Dir.mkdir(chef_repo_path) if !File.exists?(chef_repo_path)
+ Dir.mkdir(chef_repo_path) if !File.exist?(chef_repo_path)
# 11.6 and below had a bug where it couldn't create the repo children automatically
if Chef::VERSION.to_f < 11.8
%w{clients cookbooks data_bags environments nodes roles users}.each do |child|
- Dir.mkdir("#{chef_repo_path}/#{child}") if !File.exists?("#{chef_repo_path}/#{child}")
+ Dir.mkdir("#{chef_repo_path}/#{child}") if !File.exist?("#{chef_repo_path}/#{child}")
end
end
diff --git a/spec/search_spec.rb b/spec/search_spec.rb
index 34ea5b9..f0b9b5e 100644
--- a/spec/search_spec.rb
+++ b/spec/search_spec.rb
@@ -2,7 +2,7 @@ require "chef_zero/solr/solr_parser"
require "chef_zero/solr/solr_doc"
describe ChefZero::Solr::SolrParser do
- let (:all_docs) do
+ let(:all_docs) do
docs = []
[{ "foo" => "a" },
{ "foo" => "d" }].each_with_index do |h, i|