summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-04-07 00:24:35 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-04-07 00:24:35 +0530
commita700fec953f275b2b0338130baa85b12beec0aea (patch)
treed154db2f588316c289b33036c5de256a040172b6 /spec/functional
parentbe60ec97c5774ebaf7d2f4cfdc82bc51f59fb2bb (diff)
downloadchef-a700fec953f275b2b0338130baa85b12beec0aea.tar.gz
some spec typos
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/file_content_management/deploy_strategies_spec.rb6
-rw-r--r--spec/functional/resource/dnf_package_spec.rb2
-rw-r--r--spec/functional/resource/windows_env_spec.rb2
-rw-r--r--spec/functional/win32/versions_spec.rb2
4 files changed, 6 insertions, 6 deletions
diff --git a/spec/functional/file_content_management/deploy_strategies_spec.rb b/spec/functional/file_content_management/deploy_strategies_spec.rb
index 07991aa8bd..e5acf223a2 100644
--- a/spec/functional/file_content_management/deploy_strategies_spec.rb
+++ b/spec/functional/file_content_management/deploy_strategies_spec.rb
@@ -113,7 +113,7 @@ shared_examples_for "a content deploy strategy" do
path
end
- def unix_invariant_properies(stat_struct)
+ def unix_invariant_properties(stat_struct)
unix_invariants.inject({}) do |property_map, property|
property_map[property] = stat_struct.send(property)
property_map
@@ -137,7 +137,7 @@ shared_examples_for "a content deploy strategy" do
content_deployer.deploy(staging_file_path, target_file_path)
updated_info = File.stat(target_file_path)
- expect(unix_invariant_properies(original_info)).to eq(unix_invariant_properies(updated_info))
+ expect(unix_invariant_properties(original_info)).to eq(unix_invariant_properties(updated_info))
end
it "maintains invariant properties on Windows", :windows_only do
@@ -164,7 +164,7 @@ shared_examples_for "a content deploy strategy" do
content_deployer.deploy(staging_file_path, target_file_path)
updated_info = File.stat(target_file_path)
- expect(unix_invariant_properies(original_info)).to eq(unix_invariant_properies(updated_info))
+ expect(unix_invariant_properties(original_info)).to eq(unix_invariant_properties(updated_info))
end
end
diff --git a/spec/functional/resource/dnf_package_spec.rb b/spec/functional/resource/dnf_package_spec.rb
index ec167238f7..1d18fcd141 100644
--- a/spec/functional/resource/dnf_package_spec.rb
+++ b/spec/functional/resource/dnf_package_spec.rb
@@ -321,7 +321,7 @@ describe Chef::Resource::DnfPackage, :requires_root, external: exclude_test do
expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^chef_rpm-1.10-1.#{pkg_arch}$")
end
- it "with nothing intalled, it installs the latest version" do
+ it "with nothing installed, it installs the latest version" do
flush_cache
dnf_package.package_name("chef_rpm > 1.2")
dnf_package.run_action(:install)
diff --git a/spec/functional/resource/windows_env_spec.rb b/spec/functional/resource/windows_env_spec.rb
index e5f2032795..1bedd881f1 100644
--- a/spec/functional/resource/windows_env_spec.rb
+++ b/spec/functional/resource/windows_env_spec.rb
@@ -159,7 +159,7 @@ describe Chef::Resource::WindowsEnv, :windows_only do
expect(ENV[chef_env_test_lower_case]).to eq(env_value2)
end
- # This examlpe covers Chef Issue #1754
+ # This example covers Chef Issue #1754
it "should modify an existing variable's value to a new value if the variable name case differs from the existing variable" do
expect(ENV[chef_env_test_lower_case]).to eq(env_value1)
test_resource.key_name(chef_env_test_mixed_case)
diff --git a/spec/functional/win32/versions_spec.rb b/spec/functional/win32/versions_spec.rb
index 9ce21c49f9..25e03b255f 100644
--- a/spec/functional/win32/versions_spec.rb
+++ b/spec/functional/win32/versions_spec.rb
@@ -40,7 +40,7 @@ describe "Chef::ReservedNames::Win32::Version", :windows_only do
@current_os_version = "Windows Server 2008"
else
# The name from WMI is actually what we want in Win2k8R2+.
- # So this expectation sould continue to hold without modification
+ # So this expectation should continue to hold without modification
# as new versions of Windows are released.
@current_os_version = host["caption"]
end