diff options
author | Veres Lajos <vlajos@gmail.com> | 2014-11-08 09:06:54 +0000 |
---|---|---|
committer | Veres Lajos <vlajos@gmail.com> | 2014-11-08 22:15:44 +0000 |
commit | 5c489b2fb6f10e5ba39d804524d754139e0b2dc9 (patch) | |
tree | e8f17c800ea6bd1441b982f413c51f9c62e9770f /spec/unit | |
parent | 5d7f05a0436b85929a0a764807fa81b26b3d4fb8 (diff) | |
download | chef-5c489b2fb6f10e5ba39d804524d754139e0b2dc9.tar.gz |
typo fixes - https://github.com/vlajos/misspell_fixer
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/cookbook/metadata_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/cookbook_version_spec.rb | 12 | ||||
-rw-r--r-- | spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb | 8 | ||||
-rw-r--r-- | spec/unit/handler_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/knife_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/lwrp_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/node/immutable_collections_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/resource_definition_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/resource_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/run_list/run_list_expansion_spec.rb | 4 | ||||
-rw-r--r-- | spec/unit/shell_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/util/dsc/configuration_generator_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/workstation_config_loader_spec.rb | 2 |
13 files changed, 22 insertions, 22 deletions
diff --git a/spec/unit/cookbook/metadata_spec.rb b/spec/unit/cookbook/metadata_spec.rb index a1903a1948..760ae5dd2a 100644 --- a/spec/unit/cookbook/metadata_spec.rb +++ b/spec/unit/cookbook/metadata_spec.rb @@ -441,7 +441,7 @@ describe Chef::Cookbook::Metadata do }.not_to raise_error end - it "should let type be hash (backwards compatability only)" do + it "should let type be hash (backwards compatibility only)" do expect { metadata.attribute("db/mysql/databases", :type => "hash") }.not_to raise_error diff --git a/spec/unit/cookbook_version_spec.rb b/spec/unit/cookbook_version_spec.rb index 3d0348553b..6dd3429ffc 100644 --- a/spec/unit/cookbook_version_spec.rb +++ b/spec/unit/cookbook_version_spec.rb @@ -396,7 +396,7 @@ describe Chef::CookbookVersion do expect(@cookbook_version).to have_template_for_node(@node, ["test.erb"]) end - it "should see a template using an array lookup with non-existant elements" do + it "should see a template using an array lookup with non-existent elements" do expect(@cookbook_version).to have_template_for_node(@node, ["missing.txt", "test.erb"]) end @@ -408,23 +408,23 @@ describe Chef::CookbookVersion do expect(@cookbook_version).to have_cookbook_file_for_node(@node, ["test.txt"]) end - it "should see a file using an array lookup with non-existant elements" do + it "should see a file using an array lookup with non-existent elements" do expect(@cookbook_version).to have_cookbook_file_for_node(@node, ["missing.txt", "test.txt"]) end - it "should not see a non-existant template" do + it "should not see a non-existent template" do expect(@cookbook_version).not_to have_template_for_node(@node, "missing.erb") end - it "should not see a non-existant template using an array lookup" do + it "should not see a non-existent template using an array lookup" do expect(@cookbook_version).not_to have_template_for_node(@node, ["missing.erb"]) end - it "should not see a non-existant file" do + it "should not see a non-existent file" do expect(@cookbook_version).not_to have_cookbook_file_for_node(@node, "missing.txt") end - it "should not see a non-existant file using an array lookup" do + it "should not see a non-existent file using an array lookup" do expect(@cookbook_version).not_to have_cookbook_file_for_node(@node, ["missing.txt"]) end diff --git a/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb b/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb index ee957ed450..a42d234601 100644 --- a/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +++ b/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb @@ -114,20 +114,20 @@ describe Chef::Formatters::ErrorInspectors::ResourceFailureInspector do describe "recipe_snippet" do before do # fake code to run through #recipe_snippet - source_file = [ "if true", "var = non_existant", "end" ] + source_file = [ "if true", "var = non_existent", "end" ] allow(IO).to receive(:readlines).and_return(source_file) allow(File).to receive(:exists?).and_return(true) end it "parses a Windows path" do - source_line = "C:/Users/btm/chef/chef/spec/unit/fake_file.rb:2: undefined local variable or method `non_existant' for main:Object (NameError)" + source_line = "C:/Users/btm/chef/chef/spec/unit/fake_file.rb:2: undefined local variable or method `non_existent' for main:Object (NameError)" @resource.source_line = source_line @inspector = Chef::Formatters::ErrorInspectors::ResourceFailureInspector.new(@resource, :create, @exception) expect(@inspector.recipe_snippet).to match(/^# In C:\/Users\/btm/) end it "parses a unix path" do - source_line = "/home/btm/src/chef/chef/spec/unit/fake_file.rb:2: undefined local variable or method `non_existant' for main:Object (NameError)" + source_line = "/home/btm/src/chef/chef/spec/unit/fake_file.rb:2: undefined local variable or method `non_existent' for main:Object (NameError)" @resource.source_line = source_line @inspector = Chef::Formatters::ErrorInspectors::ResourceFailureInspector.new(@resource, :create, @exception) expect(@inspector.recipe_snippet).to match(/^# In \/home\/btm/) @@ -145,7 +145,7 @@ describe Chef::Formatters::ErrorInspectors::ResourceFailureInspector do expect(@inspector.recipe_snippet).to be_nil end - it "does not raise an exception trying to load a non-existant file (CHEF-3411)" do + it "does not raise an exception trying to load a non-existent file (CHEF-3411)" do @resource.source_line = "/somewhere/in/space" @inspector = Chef::Formatters::ErrorInspectors::ResourceFailureInspector.new(@resource, :create, @exception) expect { @inspector.recipe_snippet }.not_to raise_error diff --git a/spec/unit/handler_spec.rb b/spec/unit/handler_spec.rb index a9aa0e0b50..e7f67405fc 100644 --- a/spec/unit/handler_spec.rb +++ b/spec/unit/handler_spec.rb @@ -84,7 +84,7 @@ describe Chef::Handler do end it "has a shortcut for the success? and failed? predicates" do - expect(@handler.success?).to be_falsey # becuase there's an exception + expect(@handler.success?).to be_falsey # because there's an exception expect(@handler.failed?).to be_truthy end diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb index d35ba4fa5f..49fa4a85ca 100644 --- a/spec/unit/knife_spec.rb +++ b/spec/unit/knife_spec.rb @@ -64,7 +64,7 @@ describe Chef::Knife do expect(KnifeSpecs::TestNameMapping.subcommand_category).to eq('test') end - it "has an explictly defined category if set" do + it "has an explicitly defined category if set" do expect(KnifeSpecs::TestExplicitCategory.subcommand_category).to eq('cookbook site') end diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index 0fb0ea7cab..35963dec64 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -247,7 +247,7 @@ describe "LWRP" do end end - it "ammends actions when they are already defined" do + it "amends actions when they are already defined" do raise_if_deprecated! expect(child.actions).to eq([:eat, :sleep, :drink]) end diff --git a/spec/unit/node/immutable_collections_spec.rb b/spec/unit/node/immutable_collections_spec.rb index b1e7b9169b..d0ec81c7f7 100644 --- a/spec/unit/node/immutable_collections_spec.rb +++ b/spec/unit/node/immutable_collections_spec.rb @@ -33,7 +33,7 @@ describe Chef::Node::ImmutableMash do expect(@immutable_mash[:top][:second_level]).to eq("some value") end - it "elelment references like a regular Mash" do + it "element references like a regular Mash" do expect(@immutable_mash[:top_level_2]).to eq(%w[array of values]) end diff --git a/spec/unit/resource_definition_spec.rb b/spec/unit/resource_definition_spec.rb index 01e28bf091..1371a8b9a6 100644 --- a/spec/unit/resource_definition_spec.rb +++ b/spec/unit/resource_definition_spec.rb @@ -85,7 +85,7 @@ describe Chef::ResourceDefinition do expect(defn.recipe.call).to eql("I am what I am") end - it "should set paramaters based on method_missing" do + it "should set parameters based on method_missing" do defn.mind "to fly" expect(defn.params[:mind]).to eql("to fly") end diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb index bb02d91b23..335956009f 100644 --- a/spec/unit/resource_spec.rb +++ b/spec/unit/resource_spec.rb @@ -324,7 +324,7 @@ describe Chef::Resource do expect(zm.is("one", "two", "three")).to eq(%w|one two three|) end - it "should allow arguments preceeded by is to methods" do + it "should allow arguments preceded by is to methods" do @resource.noop(@resource.is(true)) expect(@resource.noop).to eql(true) end diff --git a/spec/unit/run_list/run_list_expansion_spec.rb b/spec/unit/run_list/run_list_expansion_spec.rb index 927257875e..859219d346 100644 --- a/spec/unit/run_list/run_list_expansion_spec.rb +++ b/spec/unit/run_list/run_list_expansion_spec.rb @@ -97,7 +97,7 @@ describe Chef::RunList::RunListExpansion do expect(@expansion.recipes).to eq(['lobster', 'crabrevenge', 'fist']) end - it "has the merged attributes from the roles with outer roles overridding inner" do + it "has the merged attributes from the roles with outer roles overriding inner" do expect(@expansion.default_attrs).to eq({'foo' => 'bar'}) expect(@expansion.override_attrs).to eq({'baz' => 'qux'}) end @@ -109,7 +109,7 @@ describe Chef::RunList::RunListExpansion do end - describe "after expanding a run list with a non existant role" do + describe "after expanding a run list with a non existent role" do before do allow(@expansion).to receive(:fetch_role) { @expansion.role_not_found('crabrevenge', "role[base]") } @expansion.expand diff --git a/spec/unit/shell_spec.rb b/spec/unit/shell_spec.rb index 58dea4c988..0e028f4359 100644 --- a/spec/unit/shell_spec.rb +++ b/spec/unit/shell_spec.rb @@ -47,7 +47,7 @@ describe Shell do describe "reporting its status" do - it "alway says it is running" do + it "always says it is running" do expect(Shell).to be_running end diff --git a/spec/unit/util/dsc/configuration_generator_spec.rb b/spec/unit/util/dsc/configuration_generator_spec.rb index c39c949991..e75e285d43 100644 --- a/spec/unit/util/dsc/configuration_generator_spec.rb +++ b/spec/unit/util/dsc/configuration_generator_spec.rb @@ -137,7 +137,7 @@ describe Chef::Util::DSC::ConfigurationGenerator do describe "#find_configuration_document" do it "should find the mof file" do - # These tests seem way too implementation specific. Unfortunatly, File and Dir + # These tests seem way too implementation specific. Unfortunately, File and Dir # need to be mocked because they are OS specific allow(File).to receive(:join) do |a, b| [a,b].join("++") diff --git a/spec/unit/workstation_config_loader_spec.rb b/spec/unit/workstation_config_loader_spec.rb index 0f60e3ec38..a865103188 100644 --- a/spec/unit/workstation_config_loader_spec.rb +++ b/spec/unit/workstation_config_loader_spec.rb @@ -219,7 +219,7 @@ describe Chef::WorkstationConfigLoader do end - context "when an explict config is given but it doesn't exist" do + context "when an explicit config is given but it doesn't exist" do let(:explicit_config_location) { "/nope/nope/nope/frab/jab/nab" } |