summaryrefslogtreecommitdiff
path: root/chef-config/spec
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-05-07 17:49:20 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-18 20:29:40 -0700
commit828e3e525cdeef355f983c02586008a64f70a79c (patch)
treecb398a5f0fe8544f16a36a43bab712f46e429e2d /chef-config/spec
parent773c285b051b66224d91636b9c8069ce232901cb (diff)
downloadchef-828e3e525cdeef355f983c02586008a64f70a79c.tar.gz
More files free of spelling violations.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'chef-config/spec')
-rw-r--r--chef-config/spec/unit/config_spec.rb8
-rw-r--r--chef-config/spec/unit/workstation_config_loader_spec.rb10
2 files changed, 9 insertions, 9 deletions
diff --git a/chef-config/spec/unit/config_spec.rb b/chef-config/spec/unit/config_spec.rb
index 5cf814e7b3..ccfe57c57c 100644
--- a/chef-config/spec/unit/config_spec.rb
+++ b/chef-config/spec/unit/config_spec.rb
@@ -175,11 +175,11 @@ RSpec.describe ChefConfig::Config do
end
context "when passes multiple cookbook_paths in config options" do
- let(:extra_config_options) { ["cookbook_path=[first_cookbook, secound_cookbooks]"] }
+ let(:extra_config_options) { ["cookbook_path=[first_cookbook, second_cookbooks]"] }
it "expanded paths" do
apply_config
- expect(described_class[:cookbook_path]).to eq(["#{current_directory}/first_cookbook", "#{current_directory}/secound_cookbooks"])
+ expect(described_class[:cookbook_path]).to eq(["#{current_directory}/first_cookbook", "#{current_directory}/second_cookbooks"])
end
end
end
@@ -205,8 +205,8 @@ RSpec.describe ChefConfig::Config do
# end
# else
# formatter = "null"
- # log_location = configured-value or defualt
- # log_level = info or defualt
+ # log_location = configured-value or default
+ # log_level = info or default
# end
#
it "has an empty list of formatters by default" do
diff --git a/chef-config/spec/unit/workstation_config_loader_spec.rb b/chef-config/spec/unit/workstation_config_loader_spec.rb
index f5fc7f90e2..c589b298ae 100644
--- a/chef-config/spec/unit/workstation_config_loader_spec.rb
+++ b/chef-config/spec/unit/workstation_config_loader_spec.rb
@@ -52,7 +52,7 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do
end
it "tests a path's existence" do
- expect(config_loader.path_exists?("/nope/nope/nope/nope/frab/jab/nab")).to be(false)
+ expect(config_loader.path_exists?("/nope/nope/nope/nope/slab/jab/nab")).to be(false)
expect(config_loader.path_exists?(__FILE__)).to be(true)
end
@@ -214,7 +214,7 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do
describe "loading the config file" do
- context "when no explicit config is specifed and no implicit config is found" do
+ context "when no explicit config is specified and no implicit config is found" do
before do
allow(config_loader).to receive(:path_exists?).with(an_instance_of(String)).and_return(false)
@@ -230,7 +230,7 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do
context "when an explicit config is given but it doesn't exist" do
- let(:explicit_config_location) { "/nope/nope/nope/frab/jab/nab" }
+ let(:explicit_config_location) { "/nope/nope/nope/slab/jab/nab" }
it "raises a configuration error" do
expect { config_loader.load }.to raise_error(ChefConfig::ConfigurationError)
@@ -402,12 +402,12 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do
end
context "has a non rb file" do
- let(:sytax_error_content) { "{{{{{:{{" }
+ let(:syntax_error_content) { "{{{{{:{{" }
let(:config_content) { "config_d_file_evaluated(true)" }
let!(:not_confd_file) do
Tempfile.new(["Chef-WorkstationConfigLoader-rspec-test", ".foorb"], tempdir).tap do |t|
- t.print(sytax_error_content)
+ t.print(syntax_error_content)
t.close
end
end