summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-05-07 16:50:25 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-18 20:29:40 -0700
commita729c9be155e3d335fbd7bd165abd4ba9610943d (patch)
tree75b4b985ff469f033dc644857a8183d784611d34 /spec
parenta36abdaf4c6cad4df506866021ec7abb2266706b (diff)
downloadchef-a729c9be155e3d335fbd7bd165abd4ba9610943d.tar.gz
Get lib/ free of spelling violations.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec')
-rw-r--r--spec/functional/resource/git_spec.rb12
-rw-r--r--spec/functional/resource/windows_task_spec.rb8
-rw-r--r--spec/unit/knife/core/windows_bootstrap_context_spec.rb2
-rw-r--r--spec/unit/node/attribute_spec.rb2
-rw-r--r--spec/unit/provider/package/portage_spec.rb4
-rw-r--r--spec/unit/provider/package/powershell_spec.rb2
-rw-r--r--spec/unit/win32/registry_spec.rb2
7 files changed, 16 insertions, 16 deletions
diff --git a/spec/functional/resource/git_spec.rb b/spec/functional/resource/git_spec.rb
index ca1bd30893..f8064fef20 100644
--- a/spec/functional/resource/git_spec.rb
+++ b/spec/functional/resource/git_spec.rb
@@ -103,7 +103,7 @@ describe Chef::Resource::Git, requires_git: true do
revision "v1.0.0"
end.should_be_updated
expect_revision_to_be("HEAD", v1_commit)
- expect_branch_to_be("tags/v1.0.0^0") # detatched
+ expect_branch_to_be("tags/v1.0.0^0") # detached
# also verify the tag commit itself is what we expect as an extra sanity check
expect_revision_to_be("v1.0.0", v1_tag)
end
@@ -116,7 +116,7 @@ describe Chef::Resource::Git, requires_git: true do
git deploy_directory do
repository origin_repo
revision "v1.0.0"
- expect_branch_to_be("tags/v1.0.0^0") # detatched
+ expect_branch_to_be("tags/v1.0.0^0") # detached
end.should_not_be_updated
end
end
@@ -128,7 +128,7 @@ describe Chef::Resource::Git, requires_git: true do
revision rev_foo
end.should_be_updated
expect_revision_to_be("HEAD", rev_foo)
- expect_branch_to_be("master~1") # detatched
+ expect_branch_to_be("master~1") # detached
end
it "checks out the expected revision ed18 to a local branch" do
@@ -138,7 +138,7 @@ describe Chef::Resource::Git, requires_git: true do
checkout_branch "deploy"
end.should_be_updated
expect_revision_to_be("HEAD", rev_foo)
- expect_branch_to_be("deploy") # detatched
+ expect_branch_to_be("deploy") # detached
end
it "doesn't update if up-to-date" do
@@ -152,7 +152,7 @@ describe Chef::Resource::Git, requires_git: true do
repository origin_repo
revision rev_foo
end.should_not_be_updated
- expect_branch_to_be("master~1") # detatched
+ expect_branch_to_be("master~1") # detached
end
it "checks out the expected revision 972d" do
@@ -161,7 +161,7 @@ describe Chef::Resource::Git, requires_git: true do
revision rev_testing
end.should_be_updated
expect_revision_to_be("HEAD", rev_testing)
- expect_branch_to_be("master~2") # detatched
+ expect_branch_to_be("master~2") # detached
end
it "checks out the expected revision 972d to a local branch" do
diff --git a/spec/functional/resource/windows_task_spec.rb b/spec/functional/resource/windows_task_spec.rb
index 8ed8d5c522..5a044e0924 100644
--- a/spec/functional/resource/windows_task_spec.rb
+++ b/spec/functional/resource/windows_task_spec.rb
@@ -317,12 +317,12 @@ describe Chef::Resource::WindowsTask, :windows_only do
expect(subject).not_to be_updated_by_last_action
end
- it "updates a scheduled task to run every 5 hrs when frequency modifer updated to 5" do
+ it "updates a scheduled task to run every 5 hrs when frequency modifier updated to 5" do
subject.run_action(:create)
current_resource = call_for_load_current_resource
trigger_details = current_resource.task.trigger(0)
expect(trigger_details[:minutes_interval]).to eq(180)
- # updating frequency modifer to 5 from 3
+ # updating frequency modifier to 5 from 3
subject.frequency_modifier 5
subject.run_action(:create)
expect(subject).to be_updated_by_last_action
@@ -501,7 +501,7 @@ describe Chef::Resource::WindowsTask, :windows_only do
it "raises argument error if frequency_modifier is 'first, second' and day is not provided." do
subject.frequency_modifier "first, second"
- expect { subject.after_created }.to raise_error("Please select day on which you want to run the task e.g. 'Mon, Tue'. Multiple values must be seprated by comma.")
+ expect { subject.after_created }.to raise_error("Please select day on which you want to run the task e.g. 'Mon, Tue'. Multiple values must be separated by comma.")
end
it "raises argument error if months is passed along with frequency_modifier" do
@@ -532,7 +532,7 @@ describe Chef::Resource::WindowsTask, :windows_only do
expect { subject.after_created }.to raise_error("frequency_modifier value 0 is invalid. Valid values for :monthly frequency are 1 - 12, 'FIRST', 'SECOND', 'THIRD', 'FOURTH', 'LAST'.")
end
- it "creates scheduled task to run task monthly on Monday and Friday of first, second and thrid week of month" do
+ it "creates scheduled task to run task monthly on Monday and Friday of first, second and third week of month" do
subject.frequency_modifier "first, second, third"
subject.day "Mon, Fri"
expect { subject.after_created }.not_to raise_error(ArgumentError)
diff --git a/spec/unit/knife/core/windows_bootstrap_context_spec.rb b/spec/unit/knife/core/windows_bootstrap_context_spec.rb
index e0ca7f17ab..6b041c5311 100644
--- a/spec/unit/knife/core/windows_bootstrap_context_spec.rb
+++ b/spec/unit/knife/core/windows_bootstrap_context_spec.rb
@@ -217,7 +217,7 @@ describe Chef::Knife::Core::WindowsBootstrapContext do
let(:custom_url) { "file://something" }
let(:config) { { msi_url: custom_url, install: true } }
- it "returns the overriden url" do
+ it "returns the overridden url" do
expect(bootstrap_context.msi_url).to eq(custom_url)
end
diff --git a/spec/unit/node/attribute_spec.rb b/spec/unit/node/attribute_spec.rb
index 564dc1a231..6e78725bd9 100644
--- a/spec/unit/node/attribute_spec.rb
+++ b/spec/unit/node/attribute_spec.rb
@@ -382,7 +382,7 @@ describe Chef::Node::Attribute do
expect(@attributes["command"]["ps"]).to eq("ps -ef")
end
- it "should return default data if it is not overriden or in attribute data" do
+ it "should return default data if it is not overridden or in attribute data" do
expect(@attributes["music"]["mastodon"]).to eq("rocks")
end
diff --git a/spec/unit/provider/package/portage_spec.rb b/spec/unit/provider/package/portage_spec.rb
index bc7ad22854..8fdd7f877a 100644
--- a/spec/unit/provider/package/portage_spec.rb
+++ b/spec/unit/provider/package/portage_spec.rb
@@ -118,13 +118,13 @@ describe Chef::Provider::Package::Portage, "load_current_resource" do
expect { @provider.candidate_version }.to raise_error(Chef::Exceptions::Package)
end
- it "should find the candidate_version if a category is specifed and there are no duplicates" do
+ it "should find the candidate_version if a category is specified and there are no duplicates" do
status = double(stdout: "dev-vcs/git-2.16.2", exitstatus: 0)
expect(@provider).to receive(:shell_out_compacted).and_return(status)
expect(@provider.candidate_version).to eq("2.16.2")
end
- it "should find the candidate_version if a category is not specifed and there are no duplicates" do
+ it "should find the candidate_version if a category is not specified and there are no duplicates" do
status = double(stdout: "dev-vcs/git-2.16.2", exitstatus: 0)
@provider = Chef::Provider::Package::Portage.new(@new_resource_without_category, @run_context)
expect(@provider).to receive(:shell_out_compacted).and_return(status)
diff --git a/spec/unit/provider/package/powershell_spec.rb b/spec/unit/provider/package/powershell_spec.rb
index 865cce4b22..a0d081fd78 100644
--- a/spec/unit/provider/package/powershell_spec.rb
+++ b/spec/unit/provider/package/powershell_spec.rb
@@ -131,7 +131,7 @@ describe Chef::Provider::Package::Powershell, :windows_only do
expect(provider.candidate_version).to eql(["2.12.0.0"])
end
- it "should set the candidate_version to the latest version when not pinning and package name is space seperated" do
+ it "should set the candidate_version to the latest version when not pinning and package name is space separated" do
allow(provider).to receive(:powershell_out).with("( Find-Package '7-Zip 16.02 (x64)' -Force -ForceBootstrap ).Version", { timeout: new_resource.timeout }).and_return(package_7zip_available)
new_resource.package_name(["7-Zip 16.02 (x64)"])
new_resource.version(nil)
diff --git a/spec/unit/win32/registry_spec.rb b/spec/unit/win32/registry_spec.rb
index f75a85a32b..124765129b 100644
--- a/spec/unit/win32/registry_spec.rb
+++ b/spec/unit/win32/registry_spec.rb
@@ -30,7 +30,7 @@ describe Chef::Win32::Registry do
let(:sub_key) { "OpscodePrimes" }
let(:missing_key_path) { 'HKCU\Software' }
let(:registry) { Chef::Win32::Registry.new }
- let(:hive_mock) { double("::Win32::Registry::KHKEY_CURRENT_USER") }
+ let(:hive_mock) { double("::Win32::Registry::HKEY_CURRENT_USER") }
let(:reg_mock) { double("reg") }
before(:all) do