diff options
author | Tim Smith <tsmith@chef.io> | 2020-04-07 09:22:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 09:22:06 -0700 |
commit | b2ea23fabeed43a12fb5d3c8a70fc57a336757b0 (patch) | |
tree | 6ae2761ce90ad59e815a1db9ac86a45bf5c44633 /spec | |
parent | 14deb837315af9823921870de832c1579488ff75 (diff) | |
parent | 34caf4c788e206df8a883fe333b0d66922c34e04 (diff) | |
download | chef-b2ea23fabeed43a12fb5d3c8a70fc57a336757b0.tar.gz |
Merge pull request #9609 from MsysTechnologiesllc/VSingh/typos-fixes
Spell checking in comments and log messages
Diffstat (limited to 'spec')
52 files changed, 114 insertions, 114 deletions
diff --git a/spec/data/shef-config.rb b/spec/data/shef-config.rb index efd601d6d8..0e2521c5b4 100644 --- a/spec/data/shef-config.rb +++ b/spec/data/shef-config.rb @@ -1,6 +1,6 @@ ohai[:disabled_plugins] << "darwin::system_profiler" << "darwin::kernel" << "darwin::ssh_host_key" << "network_listeners" ohai[:disabled_plugins] << "virtualization" << "darwin::virtualization" -ohai[:disabled_plugins] << "darwin::uptime" << "darwin::filesystem" << "dmi" << "lanuages" << "perl" << "python" << "java" +ohai[:disabled_plugins] << "darwin::uptime" << "darwin::filesystem" << "dmi" << "languages" << "perl" << "python" << "java" ohai[:disabled_plugins] << "linux::block_device" << "linux::kernel" << "linux::ssh_host_key" << "linux::virtualization" ohai[:disabled_plugins] << "linux::cpu" << "linux::memory" << "ec2" << "rackspace" << "eucalyptus" << "ip_scopes" ohai[:disabled_plugins] << "solaris2::cpu" << "solaris2::dmi" << "solaris2::filesystem" << "solaris2::kernel" 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..f935cdbf24 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) @@ -612,7 +612,7 @@ describe Chef::Resource::DnfPackage, :requires_root, external: exclude_test do # this is a bit tricky -- we need this action to be idempotent, so that it doesn't recycle any # caches, but need it to hit whatavailable with the repo disabled. using :upgrade like this # accomplishes both those goals (it would be easier if we had other rpms in this repo, but with - # one rpm we neeed to do this). + # one rpm we need to do this). preinstall("chef_rpm-1.2-1.#{pkg_arch}.rpm") dnf_package.options("--disablerepo=chef-dnf-localtesting") dnf_package.run_action(:upgrade) 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/resource/windows_task_spec.rb b/spec/functional/resource/windows_task_spec.rb index fa51ad3f8a..9255dfe764 100644 --- a/spec/functional/resource/windows_task_spec.rb +++ b/spec/functional/resource/windows_task_spec.rb @@ -36,7 +36,7 @@ describe Chef::Resource::WindowsTask, :windows_only do context "when command is with arguments" do subject do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this # Make sure MM/DD/YYYY is accepted new_resource.start_day "09/20/2017" @@ -173,7 +173,7 @@ describe Chef::Resource::WindowsTask, :windows_only do context "when description is passed" do subject do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource.command task_name # Make sure MM/DD/YYYY is accepted new_resource.start_day "09/20/2017" @@ -213,7 +213,7 @@ describe Chef::Resource::WindowsTask, :windows_only do subject do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this # Make sure MM/DD/YYYY is accepted new_resource.start_day "09/20/2017" new_resource.frequency :hourly @@ -248,7 +248,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.run_level :highest new_resource.frequency :minute new_resource.frequency_modifier 15 - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -296,7 +296,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.run_level :highest new_resource.frequency :hourly new_resource.frequency_modifier 3 - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -341,7 +341,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :daily - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -370,7 +370,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :monthly - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -495,7 +495,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :monthly - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -584,7 +584,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :monthly - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -691,7 +691,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :monthly - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -793,7 +793,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :once - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -832,7 +832,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :weekly - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -981,7 +981,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :onstart - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1028,7 +1028,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :on_logon - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1075,7 +1075,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :on_idle - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1134,7 +1134,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name new_resource.run_level :highest - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1178,7 +1178,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name new_resource.run_level :highest - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1263,7 +1263,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :none - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1290,7 +1290,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name new_resource.run_level :highest - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1346,7 +1346,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :once - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1372,7 +1372,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :once - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1397,7 +1397,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name new_resource.frequency :once - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1502,7 +1502,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.run_level :highest new_resource.frequency :once new_resource.start_time "17:00" - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1526,7 +1526,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name new_resource.run_level :highest - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource.frequency :none new_resource end @@ -1552,7 +1552,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.command task_name new_resource.run_level :highest new_resource.frequency :weekly - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1579,7 +1579,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.run_level :highest new_resource.frequency :once new_resource.start_time "17:00" - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1606,7 +1606,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.frequency :hourly new_resource.frequency_modifier 5 new_resource.random_delay "2400" - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1625,7 +1625,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.frequency :daily new_resource.frequency_modifier 2 new_resource.random_delay "2400" - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1641,7 +1641,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name new_resource.frequency :on_logon - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1666,7 +1666,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource.run_level :highest new_resource.frequency :onstart new_resource.frequency_modifier 20 - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1683,7 +1683,7 @@ describe Chef::Resource::WindowsTask, :windows_only do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name new_resource.run_level :highest - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource end @@ -1832,7 +1832,7 @@ describe Chef::Resource::WindowsTask, :windows_only do subject do new_resource = Chef::Resource::WindowsTask.new(task_name, run_context) new_resource.command task_name - new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accespts this + new_resource.execution_time_limit = 259200 / 60 # converting "PT72H" into minutes and passing here since win32-taskscheduler accepts this new_resource.frequency :hourly new_resource end diff --git a/spec/functional/resource/yum_package_spec.rb b/spec/functional/resource/yum_package_spec.rb index f99f03bdf1..680beb8638 100644 --- a/spec/functional/resource/yum_package_spec.rb +++ b/spec/functional/resource/yum_package_spec.rb @@ -635,7 +635,7 @@ describe Chef::Resource::YumPackage, :requires_root, external: exclude_test do # this is a bit tricky -- we need this action to be idempotent, so that it doesn't recycle any # caches, but need it to hit whatavailable with the repo disabled. using :upgrade like this # accomplishes both those goals (it would be easier if we had other rpms in this repo, but with - # one rpm we neeed to do this). + # one rpm we need to do this). preinstall("chef_rpm-1.2-1.#{pkg_arch}.rpm") yum_package.options("--disablerepo=chef-yum-localtesting") yum_package.run_action(:upgrade) 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 diff --git a/spec/support/mock/platform.rb b/spec/support/mock/platform.rb index b0a6258276..883d953371 100644 --- a/spec/support/mock/platform.rb +++ b/spec/support/mock/platform.rb @@ -2,7 +2,7 @@ # platform-specific functionality. # # If a block is given yields to the block with +RUBY_PLATFORM+ set to -# 'i386-mingw32' (windows) or 'x86_64-darwin11.2.0' (unix). Usueful for +# 'i386-mingw32' (windows) or 'x86_64-darwin11.2.0' (unix). Useful for # testing code that mixes in platform specific modules like +Chef::Mixin::Securable+ # or +Chef::FileAccessControl+ def platform_mock(platform = :unix) diff --git a/spec/support/shared/functional/securable_resource.rb b/spec/support/shared/functional/securable_resource.rb index 010ef27f47..4bccce7028 100644 --- a/spec/support/shared/functional/securable_resource.rb +++ b/spec/support/shared/functional/securable_resource.rb @@ -474,7 +474,7 @@ shared_examples_for "a securable resource without existing target" do end it "respects mode in string form as an octal number" do - # on windows, mode cannot modify owner and/or group permissons + # on windows, mode cannot modify owner and/or group permissions # unless the owner and/or group as appropriate is specified resource.mode "400" resource.owner "Guest" diff --git a/spec/support/shared/unit/provider/file.rb b/spec/support/shared/unit/provider/file.rb index d78eff0c90..43b616c26b 100644 --- a/spec/support/shared/unit/provider/file.rb +++ b/spec/support/shared/unit/provider/file.rb @@ -197,7 +197,7 @@ shared_examples_for Chef::Provider::File do expect(provider.current_resource.name).to eql(resource.name) end - it "the loaded current_resource path should be the same as the resoure path" do + it "the loaded current_resource path should be the same as the resource path" do provider.load_current_resource expect(provider.current_resource.path).to eql(resource.path) end diff --git a/spec/support/shared/unit/user_and_client_shared.rb b/spec/support/shared/unit/user_and_client_shared.rb index 40042933e2..1554a3dd8e 100644 --- a/spec/support/shared/unit/user_and_client_shared.rb +++ b/spec/support/shared/unit/user_and_client_shared.rb @@ -63,7 +63,7 @@ shared_examples_for "user or client create" do } end - it "puts the public key into the objectr returned by create" do + it "puts the public key into the object returned by create" do expect(rest_v1).to receive(:post).with(url, payload).and_return(payload.merge(chef_key)) new_object = object.create expect(new_object.public_key).to eq("some_public_key") diff --git a/spec/unit/cookbook/file_vendor_spec.rb b/spec/unit/cookbook/file_vendor_spec.rb index 557e1b8775..b258b89d68 100644 --- a/spec/unit/cookbook/file_vendor_spec.rb +++ b/spec/unit/cookbook/file_vendor_spec.rb @@ -115,7 +115,7 @@ describe Chef::Cookbook::FileVendor do file_vendor_class.fetch_from_disk(cookbook_path) end - it "retrieves the file from the correct location based on path to the cookbook that conatins the correct name metadata" do + it "retrieves the file from the correct location based on path to the cookbook that contains the correct name metadata" do file_vendor = file_vendor_class.create_from_manifest(manifest) file_vendor.get_filename("metadata.rb") end diff --git a/spec/unit/cookbook_version_spec.rb b/spec/unit/cookbook_version_spec.rb index 3dff9e94d8..2697bd5c99 100644 --- a/spec/unit/cookbook_version_spec.rb +++ b/spec/unit/cookbook_version_spec.rb @@ -49,7 +49,7 @@ describe Chef::CookbookVersion do let(:cookbook_paths_by_type) do { - # Dunno if the paths here are representitive of what is set by CookbookLoader... + # Dunno if the paths here are representative of what is set by CookbookLoader... all_files: Dir[File.join(cookbook_root, "**", "**")], } end diff --git a/spec/unit/data_collector_spec.rb b/spec/unit/data_collector_spec.rb index bc234d56aa..dc9d43dcd0 100644 --- a/spec/unit/data_collector_spec.rb +++ b/spec/unit/data_collector_spec.rb @@ -827,7 +827,7 @@ describe Chef::DataCollector do it_behaves_like "sends a converge message" end - context "when the resource collection contains a resource that was unproccesed due to prior errors" do + context "when the resource collection contains a resource that was unprocessed due to prior errors" do let(:exception) { Exception.new("imperial to metric conversion error") } let(:error_description) { Chef::Formatters::ErrorMapper.resource_failed(new_resource, :create, exception).for_json } let(:total_resource_count) { 2 } diff --git a/spec/unit/event_dispatch/dispatcher_spec.rb b/spec/unit/event_dispatch/dispatcher_spec.rb index 1db43ad740..d848f84ff5 100644 --- a/spec/unit/event_dispatch/dispatcher_spec.rb +++ b/spec/unit/event_dispatch/dispatcher_spec.rb @@ -123,7 +123,7 @@ describe Chef::EventDispatch::Dispatcher do context "events that queue events" do class Accumulator def self.sequence - @secuence ||= [] + @sequence ||= [] end end diff --git a/spec/unit/file_content_management/deploy/mv_unix_spec.rb b/spec/unit/file_content_management/deploy/mv_unix_spec.rb index 491457e8c6..3f869b5b71 100644 --- a/spec/unit/file_content_management/deploy/mv_unix_spec.rb +++ b/spec/unit/file_content_management/deploy/mv_unix_spec.rb @@ -76,7 +76,7 @@ describe Chef::FileContentManagement::Deploy::MvUnix do context "when the user does not have permissions to set file ownership" do # The test code does not care what these values are. These values are - # chosen because they're representitive of the case that chef-client is + # chosen because they're representative of the case that chef-client is # running as non-root and is managing a file that got ownership set to # root somehow. In this example, gid==20 is something like "staff" which # the user running chef-client is a member of (but it's not that user's diff --git a/spec/unit/file_content_management/deploy/mv_windows_spec.rb b/spec/unit/file_content_management/deploy/mv_windows_spec.rb index 51c3ff051e..9a191e638c 100644 --- a/spec/unit/file_content_management/deploy/mv_windows_spec.rb +++ b/spec/unit/file_content_management/deploy/mv_windows_spec.rb @@ -66,7 +66,7 @@ describe Chef::FileContentManagement::Deploy::MvWindows do end - context "when run without adminstrator privileges" do + context "when run without administrator privileges" do before do expect(target_file_security_object).to receive(:security_descriptor).and_raise(Chef::Exceptions::Win32APIError) end diff --git a/spec/unit/file_content_management/tempfile_spec.rb b/spec/unit/file_content_management/tempfile_spec.rb index a04ace5f16..62272cb440 100644 --- a/spec/unit/file_content_management/tempfile_spec.rb +++ b/spec/unit/file_content_management/tempfile_spec.rb @@ -98,7 +98,7 @@ describe Chef::FileContentManagement::Tempfile do expect(tempfile.path).to match(/chef-new_file.*\.html\.erb$/) end - it "should pick the destdir preferrentially" do + it "should pick the destdir preferentially" do subject = tempfile_object_for_path("/foo/bar/new_file") expect(Tempfile).to receive(:open).with([tempname, ""], "/foo/bar").and_return(tempfile) subject.send(:tempfile_open) diff --git a/spec/unit/formatters/base_spec.rb b/spec/unit/formatters/base_spec.rb index 19182554f9..8baed75c7c 100644 --- a/spec/unit/formatters/base_spec.rb +++ b/spec/unit/formatters/base_spec.rb @@ -41,7 +41,7 @@ describe Chef::Formatters::Base do expect(formatter.output.indent).to eql(2) end - it "increments it and then decrements it corectly" do + it "increments it and then decrements it correctly" do formatter.indent_by(2) formatter.indent_by(-2) expect(formatter.output.indent).to eql(0) diff --git a/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb b/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb index 35ae5378cf..78a29acaf7 100644 --- a/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb +++ b/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb @@ -81,7 +81,7 @@ describe Chef::Formatters::ErrorInspectors::CookbookResolveErrorInspector do before do - @response_body = "{\"error\":[{\"non_existent_cookbooks\":[],\"cookbooks_with_no_versions\":[],\"message\":\"unable to solve dependencies in alotted time.\"}]}" + @response_body = "{\"error\":[{\"non_existent_cookbooks\":[],\"cookbooks_with_no_versions\":[],\"message\":\"unable to solve dependencies in allotted time.\"}]}" @response = Net::HTTPPreconditionFailed.new("1.1", "412", "(response) unauthorized") allow(@response).to receive(:body).and_return(@response_body) @exception = Net::HTTPClientException.new("(exception) precondition failed", @response) @@ -93,7 +93,7 @@ describe Chef::Formatters::ErrorInspectors::CookbookResolveErrorInspector do it "prints a pretty message" do @description.display(@outputter) @outputter_output.rewind - expect(@outputter_output.read).to include("unable to solve dependencies in alotted time.") + expect(@outputter_output.read).to include("unable to solve dependencies in allotted time.") end end diff --git a/spec/unit/http_spec.rb b/spec/unit/http_spec.rb index bf873b8535..bb52db60fd 100644 --- a/spec/unit/http_spec.rb +++ b/spec/unit/http_spec.rb @@ -43,7 +43,7 @@ describe Chef::HTTP do end - describe "#intialize" do + describe "#initialize" do it "accepts a keepalive option and passes it to the http_client" do http = Chef::HTTP.new(uri, keepalives: true) expect(Chef::HTTP::BasicClient).to receive(:new).with(uri, ssl_policy: Chef::HTTP::APISSLPolicy, keepalives: true).and_call_original @@ -165,7 +165,7 @@ describe Chef::HTTP do end it "raises the error without retrying or sleeping" do - # We modify the strings to give addtional context, but the exception class should be the same + # We modify the strings to give additional context, but the exception class should be the same expect { http.get("/") }.to raise_error(exception.class) end end diff --git a/spec/unit/key_spec.rb b/spec/unit/key_spec.rb index efae549490..09d6b48af5 100644 --- a/spec/unit/key_spec.rb +++ b/spec/unit/key_spec.rb @@ -21,7 +21,7 @@ require "spec_helper" require "chef/key" describe Chef::Key do - # whether user or client irrelevent to these tests + # whether user or client irrelevant to these tests let(:key) { Chef::Key.new("original_actor", "user") } let(:public_key_string) do <<~EOS diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb index 5a3d6a1475..75c8589c32 100644 --- a/spec/unit/knife/bootstrap_spec.rb +++ b/spec/unit/knife/bootstrap_spec.rb @@ -2035,7 +2035,7 @@ describe Chef::Knife::Bootstrap do knife.do_connect({}) end - context "when sshd confgiured with requiretty" do + context "when sshd configured with requiretty" do let(:pty_err_msg) { "Sudo requires a TTY. Please see the README on how to configure sudo to allow for non-interactive usage." } let(:expected_error) { Train::UserError.new(pty_err_msg, :sudo_no_tty) } before do diff --git a/spec/unit/knife/environment_edit_spec.rb b/spec/unit/knife/environment_edit_spec.rb index 1f2ff27ce8..ccac745888 100644 --- a/spec/unit/knife/environment_edit_spec.rb +++ b/spec/unit/knife/environment_edit_spec.rb @@ -63,7 +63,7 @@ describe Chef::Knife::EnvironmentEdit do @knife.run end - it "shoud show usage and exit when no environment name is provided" do + it "should show usage and exit when no environment name is provided" do @knife.name_args = [] expect(@knife).to receive(:show_usage) expect { @knife.run }.to raise_error(SystemExit) diff --git a/spec/unit/knife/ssl_fetch_spec.rb b/spec/unit/knife/ssl_fetch_spec.rb index fb904074b3..4b0a3b91dd 100644 --- a/spec/unit/knife/ssl_fetch_spec.rb +++ b/spec/unit/knife/ssl_fetch_spec.rb @@ -56,7 +56,7 @@ describe Chef::Knife::SslFetch do context "when a specific URI is given" do let(:name_args) { %w{https://example.test:10443/foo} } - it "fetchs the SSL configuration against the given host" do + it "fetches the SSL configuration against the given host" do expect(ssl_fetch.host).to eq("example.test") expect(ssl_fetch.port).to eq(10443) end diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb index 47d4a6bf66..ba6a084454 100644 --- a/spec/unit/knife_spec.rb +++ b/spec/unit/knife_spec.rb @@ -526,7 +526,7 @@ describe Chef::Knife do knife.run_with_pretty_exceptions expect(stderr.string).to match(/The request that .* sent was using API version 10000000./) - expect(stderr.string).to match(/The server you sent the request to supports a min API verson of 0 and a max API version of 1./) + expect(stderr.string).to match(/The server you sent the request to supports a min API version of 0 and a max API version of 1./) expect(stderr.string).to match(/Please either update your .* or the server to be a compatible set./) end diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index cb7ebde029..fc52560021 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -445,7 +445,7 @@ describe "LWRP" do end end - context "with a cookbook with a hypen in the name" do + context "with a cookbook with a hyphen in the name" do let(:lwrp_cookbook_name) { "l-w-r-p" } diff --git a/spec/unit/mixin/openssl_helper_spec.rb b/spec/unit/mixin/openssl_helper_spec.rb index 5155d66a22..4ae8754610 100644 --- a/spec/unit/mixin/openssl_helper_spec.rb +++ b/spec/unit/mixin/openssl_helper_spec.rb @@ -862,7 +862,7 @@ describe Chef::Mixin::OpenSSLHelper do @certfile = Tempfile.new("certfile") end - context "When the cert file doesnt not exist" do + context "When the cert file doesn't exist" do it "returns true" do expect(instance.cert_need_renewall?("/tmp/bad_filename", 3650)).to be_truthy end @@ -876,7 +876,7 @@ describe Chef::Mixin::OpenSSLHelper do end end - context "When the cert file does exist, and does not contain a soon to expire certficitate" do + context "When the cert file does exist, and does not contain a soon to expire certificate" do it "returns false" do @certfile.write("-----BEGIN CERTIFICATE-----\nMIIDODCCAiCgAwIBAgIVAPCkjE+wlZ1PgXwgvFgXKzhSpUkvMA0GCSqGSIb3DQEB\nCwUAMA0xCzAJBgNVBAMMAkNBMB4XDTE5MTIyNTEyNTY1NVoXDTI5MTIyMjEyNTY1\nNVowDTELMAkGA1UEAwwCQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\nAQC9bDWs5akf85UEMj8kry4DYNuAnaL4GnMs6XukQtp3dso+FgbKprgVogyepnet\nE+GlQq32u/n4y8K228kB6NoCn+c/yP+4QlKUBt0xSzQbSUuAE/5xZoKi/kH1ZsQ/\nuKXN/tIHagApEUGn5zqc8WBvWPliRAqiklwj8WtSw1WRa5eCdaVtln3wKuvPnYR5\n/V4YBHyHNhtlfXJBMtEaXm1rRzJGun+FdcrsCfcIFXp8lWobF+EVP8fRwqFTEtT6\nRXv6RT8sHy53a0KNTm8qnbacfr1MofgUuhzLjOrbIVvXpnRLeOkv8XW5rSH+zgsC\nZFK3bJ3j6UVbFQV4jXwlAWVrAgMBAAGjgY4wgYswDgYDVR0PAQH/BAQDAgGmMA8G\nA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFK4S2PNu6bpjxkJxedNaxfCrwtD4MEkG\nA1UdIwRCMECAFK4S2PNu6bpjxkJxedNaxfCrwtD4oRGkDzANMQswCQYDVQQDDAJD\nQYIVAPCkjE+wlZ1PgXwgvFgXKzhSpUkvMA0GCSqGSIb3DQEBCwUAA4IBAQBGk+u3\n9N3PLWNOwYrqK7fD4yceWnz4UsV9uN1IU5PQTgYBaGyAZvU+VJluZZeDj7QjwbUW\ngISclvW/pSWpUVW3O0sfAM97u+5UMYHz4W5Bgq8CtdOKHgdZHKhzBePhmou11zO0\nZ6uQ7bkh0/REqKO7TFKaMMnakEhFXoDrS1EiB4W69KVXyrBVzVm5LK7uvOAQAeMp\nnEk3Oz+5pmKjSCf1cEd2jzAgDbaVrIvxICPgXAlNrKukmRW/0UHqDDVBfF7PioD2\nptlQFxWIkih6s/clwhsBFBwV1yyCirYfjhzmKPPLZUmx10okudLzaKrRbkPxrzbC\nmKEZoV+Nz2CNrGm5\n-----END CERTIFICATE-----\n") @certfile.close @@ -884,7 +884,7 @@ describe Chef::Mixin::OpenSSLHelper do end end - context "When the cert file does exist, and does contain a soon to expire certficitate" do + context "When the cert file does exist, and does contain a soon to expire certificate" do it "returns true" do @certfile.write("-----BEGIN CERTIFICATE-----\nMIIDODCCAiCgAwIBAgIVAPCkjE+wlZ1PgXwgvFgXKzhSpUkvMA0GCSqGSIb3DQEB\nCwUAMA0xCzAJBgNVBAMMAkNBMB4XDTE5MTIyNTEyNTY1NVoXDTI5MTIyMjEyNTY1\nNVowDTELMAkGA1UEAwwCQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\nAQC9bDWs5akf85UEMj8kry4DYNuAnaL4GnMs6XukQtp3dso+FgbKprgVogyepnet\nE+GlQq32u/n4y8K228kB6NoCn+c/yP+4QlKUBt0xSzQbSUuAE/5xZoKi/kH1ZsQ/\nuKXN/tIHagApEUGn5zqc8WBvWPliRAqiklwj8WtSw1WRa5eCdaVtln3wKuvPnYR5\n/V4YBHyHNhtlfXJBMtEaXm1rRzJGun+FdcrsCfcIFXp8lWobF+EVP8fRwqFTEtT6\nRXv6RT8sHy53a0KNTm8qnbacfr1MofgUuhzLjOrbIVvXpnRLeOkv8XW5rSH+zgsC\nZFK3bJ3j6UVbFQV4jXwlAWVrAgMBAAGjgY4wgYswDgYDVR0PAQH/BAQDAgGmMA8G\nA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFK4S2PNu6bpjxkJxedNaxfCrwtD4MEkG\nA1UdIwRCMECAFK4S2PNu6bpjxkJxedNaxfCrwtD4oRGkDzANMQswCQYDVQQDDAJD\nQYIVAPCkjE+wlZ1PgXwgvFgXKzhSpUkvMA0GCSqGSIb3DQEBCwUAA4IBAQBGk+u3\n9N3PLWNOwYrqK7fD4yceWnz4UsV9uN1IU5PQTgYBaGyAZvU+VJluZZeDj7QjwbUW\ngISclvW/pSWpUVW3O0sfAM97u+5UMYHz4W5Bgq8CtdOKHgdZHKhzBePhmou11zO0\nZ6uQ7bkh0/REqKO7TFKaMMnakEhFXoDrS1EiB4W69KVXyrBVzVm5LK7uvOAQAeMp\nnEk3Oz+5pmKjSCf1cEd2jzAgDbaVrIvxICPgXAlNrKukmRW/0UHqDDVBfF7PioD2\nptlQFxWIkih6s/clwhsBFBwV1yyCirYfjhzmKPPLZUmx10okudLzaKrRbkPxrzbC\nmKEZoV+Nz2CNrGm5\n-----END CERTIFICATE-----\n") @certfile.close diff --git a/spec/unit/node/attribute_spec.rb b/spec/unit/node/attribute_spec.rb index 4490aca9a9..e6429c0c24 100644 --- a/spec/unit/node/attribute_spec.rb +++ b/spec/unit/node/attribute_spec.rb @@ -178,7 +178,7 @@ describe Chef::Node::Attribute do expect(@attributes).to be_a_kind_of(Chef::Node::Attribute) end - it "should take an Automatioc, Normal, Default and Override hash" do + it "should take an Automatic, Normal, Default and Override hash" do expect { Chef::Node::Attribute.new({}, {}, {}, {}) }.not_to raise_error end diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index 5b50f888f0..e21328d373 100644 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -297,7 +297,7 @@ describe Chef::Node do expect(node[:snoopy][:is_a_puppy]).to eq(true) end - it "should let you use tag as a convience method for the tags attribute" do + it "should let you use tag as a convince method for the tags attribute" do node.normal["tags"] = %w{one two} node.tag("three", "four") expect(node["tags"]).to eq(%w{one two three four}) @@ -436,7 +436,7 @@ describe Chef::Node do node.override["mysql"]["server"]["port"] = 3456 end - it "deletes all the values and returns the value with the highest precidence" do + it "deletes all the values and returns the value with the highest precedence" do expect( node.rm("mysql", "server", "port") ).to eql(3456) expect( node["mysql"]["server"]["port"] ).to be_nil expect( node["mysql"]["server"] ).to eql({}) @@ -527,7 +527,7 @@ describe Chef::Node do expect( node.rm_default("mysql", "server", "port") ).to eql(3456) end - it "returns nil for the combined attribues" do + it "returns nil for the combined attributes" do expect( node.rm_default("mysql", "server", "port") ).to eql(3456) expect( node["mysql"]["server"]["port"] ).to eql(nil) end @@ -633,7 +633,7 @@ describe Chef::Node do expect( node["mysql"]["server"] ).to eql({ "data_dir" => "/my_raid_volume/lib/mysql" }) end - it "replaces a value at the cookbook sub-level of the atributes only" do + it "replaces a value at the cookbook sub-level of the attributes only" do node.default["mysql"]["server"]["port"] = 2345 node.default["mysql"]["server"]["service_name"] = "fancypants-sql" node.role_default["mysql"]["server"]["port"] = 1234 @@ -1764,7 +1764,7 @@ describe Chef::Node do a = node.default["foo"] # assign that somewhere else in the tree node.default["fizz"] = a - # now upate the source + # now update the source a["duptest"] = true # the tree should have been updated expect(node.default["fizz"]["duptest"]).to be true diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb index 177314d8bc..1e6ec8878a 100644 --- a/spec/unit/property_spec.rb +++ b/spec/unit/property_spec.rb @@ -819,7 +819,7 @@ describe "Chef::Resource.property" do expect(resource.x).to eq 2 expect(Namer.current_index).to eq 2 end - it "setting the same lazy value on two different instances runs it on each instancee" do + it "setting the same lazy value on two different instances runs it on each instances" do resource2 = resource_class.new("blah2") l = lazy { Namer.next_index } resource.x l @@ -1319,7 +1319,7 @@ describe "Chef::Resource.property" do expect { thing_two_resource.copy_properties_from(thing_three_resource) }.to raise_error(NoMethodError) end - it "does not blow up if blows up if the target resource does not implement a set propery" do + it "does not blow up if blows up if the target resource does not implement a set properly" do thing_three_resource.foo "foo" thing_three_resource.bar "bar" thing_two_resource.copy_properties_from(thing_three_resource) diff --git a/spec/unit/provider/apt_preference_spec.rb b/spec/unit/provider/apt_preference_spec.rb index 91b2f58acb..1cb68f9cda 100644 --- a/spec/unit/provider/apt_preference_spec.rb +++ b/spec/unit/provider/apt_preference_spec.rb @@ -82,7 +82,7 @@ describe "Chef::Provider::AptPreference" do FileUtils.touch("#{pref_dir}/libmysqlclient16_1wildcard.pref") end - it "deletes the name santized .pref file" do + it "deletes the name sanitized .pref file" do provider.run_action(:remove) expect(new_resource).to be_updated_by_last_action expect(File).not_to exist("#{pref_dir}/libmysqlclient16_1wildcard.pref") diff --git a/spec/unit/provider/package/cab_spec.rb b/spec/unit/provider/package/cab_spec.rb index 0ffbcd4a51..f281e2c69b 100644 --- a/spec/unit/provider/package/cab_spec.rb +++ b/spec/unit/provider/package/cab_spec.rb @@ -132,7 +132,7 @@ describe Chef::Provider::Package::Cab do new_resource.cookbook_name = "cab_package" end - it "sets the desired parameters of downloades cab file" do + it "sets the desired parameters of downloaded cab file" do allow(provider).to receive(:default_download_cache_path).and_return("C:\\chef\\cache\\package") source_resource = provider.source_resource expect(source_resource.path).to be == "C:\\chef\\cache\\package" diff --git a/spec/unit/provider/package/msu_spec.rb b/spec/unit/provider/package/msu_spec.rb index 905d48649f..b3cfa0576a 100644 --- a/spec/unit/provider/package/msu_spec.rb +++ b/spec/unit/provider/package/msu_spec.rb @@ -141,7 +141,7 @@ describe Chef::Provider::Package::Msu, :windows_only do new_resource.cookbook_name = "Msu_package" end - it "sets the desired parameters of downloades msu file" do + it "sets the desired parameters of downloaded msu file" do allow(provider).to receive(:default_download_cache_path).and_return("C:\\chef\\cache\\package") source_resource = provider.source_resource expect(source_resource.path).to be == "C:\\chef\\cache\\package" diff --git a/spec/unit/provider/package/rpm_spec.rb b/spec/unit/provider/package/rpm_spec.rb index 1c4f9d31ee..813eda0377 100644 --- a/spec/unit/provider/package/rpm_spec.rb +++ b/spec/unit/provider/package/rpm_spec.rb @@ -50,7 +50,7 @@ describe Chef::Provider::Package::Rpm do describe "when the package source is not valid" do - context "when source is not defiend" do + context "when source is not defined" do let(:new_resource) { Chef::Resource::RpmPackage.new("ImageMagick-c++") } it "should raise an exception when attempting any action" do @@ -428,7 +428,7 @@ describe Chef::Provider::Package::Rpm do provider.install_package("/tmp/ImageMagick-c++-6.5.4.7-7.el6_5.x86_64.rpm", "6.5.4.7-7.el6_5") end - it "should uprgrade from a path when the package is a path and the source is nil" do + it "should upgrade from a path when the package is a path and the source is nil" do expect(new_resource.source).to eq("/tmp/ImageMagick-c++-6.5.4.7-7.el6_5.x86_64.rpm") current_resource.version("21.4-19.el5") provider.current_resource = current_resource diff --git a/spec/unit/provider/package/rubygems_spec.rb b/spec/unit/provider/package/rubygems_spec.rb index 54b721ed40..0a55ffd784 100644 --- a/spec/unit/provider/package/rubygems_spec.rb +++ b/spec/unit/provider/package/rubygems_spec.rb @@ -808,7 +808,7 @@ describe Chef::Provider::Package::Rubygems do end end - context "when clear_sources is set true and an explict source is specified" do + context "when clear_sources is set true and an explicit source is specified" do let(:gem_binary) { "/foo/bar" } let(:source) { "http://mirror.ops.rhcloud.com/mirror/ruby" } @@ -821,7 +821,7 @@ describe Chef::Provider::Package::Rubygems do end end - context "when clear_sources is set false and an explict source is specified" do + context "when clear_sources is set false and an explicit source is specified" do let(:gem_binary) { "/foo/bar" } let(:source) { "http://mirror.ops.rhcloud.com/mirror/ruby" } @@ -867,7 +867,7 @@ describe Chef::Provider::Package::Rubygems do end describe "at version specified with comparison operator" do - context "if current version satisifies requested version" do + context "if current version satisfies requested version" do let(:target_version) { ">=2.3.0" } let(:current_version) { "2.3.3" } diff --git a/spec/unit/provider/package/solaris_spec.rb b/spec/unit/provider/package/solaris_spec.rb index 5fc2d89a81..8effa82a78 100644 --- a/spec/unit/provider/package/solaris_spec.rb +++ b/spec/unit/provider/package/solaris_spec.rb @@ -55,7 +55,7 @@ describe Chef::Provider::Package::Solaris do expect(@provider.current_resource.name).to eq("SUNWbash") end - it "should set the current reource package name to the new resource package name" do + it "should set the current resource package name to the new resource package name" do allow(@provider).to receive(:shell_out_compacted).and_return(@status) @provider.load_current_resource expect(@provider.current_resource.package_name).to eq("SUNWbash") diff --git a/spec/unit/provider/package_spec.rb b/spec/unit/provider/package_spec.rb index accd913ebe..ab2f60cd46 100644 --- a/spec/unit/provider/package_spec.rb +++ b/spec/unit/provider/package_spec.rb @@ -551,7 +551,7 @@ describe "Chef::Provider::Package - Multi" do expect(new_resource).not_to be_updated_by_last_action end - it "raises an exception if both are not installed and no caondidates are available" do + it "raises an exception if both are not installed and no candidates are available" do current_resource.version([nil, nil]) provider.candidate_version = [nil, nil] expect { provider.run_action(:install) }.to raise_error(Chef::Exceptions::Package) @@ -631,7 +631,7 @@ describe "Chef::Provider::Package - Multi" do expect(new_resource).not_to be_updated_by_last_action end - it "should raise an exception if both are not installed and no caondidates are available" do + it "should raise an exception if both are not installed and no candidates are available" do current_resource.version([nil, nil]) provider.candidate_version = [nil, nil] expect { provider.run_action(:upgrade) }.to raise_error(Chef::Exceptions::Package) diff --git a/spec/unit/provider/remote_file/http_spec.rb b/spec/unit/provider/remote_file/http_spec.rb index 8ece1a854b..032cf474ef 100644 --- a/spec/unit/provider/remote_file/http_spec.rb +++ b/spec/unit/provider/remote_file/http_spec.rb @@ -305,7 +305,7 @@ describe Chef::Provider::RemoteFile::HTTP do it "should disable gzip compression in the client" do # Before block in the parent context has set an expectation on - # Chef::HTTP::Simple.new() being called with expected arguments. Here we fufil + # Chef::HTTP::Simple.new() being called with expected arguments. Here we fulfill # that expectation, so that we can explicitly set it for this test. # This is intended to provide insurance that refactoring of the parent # context does not negate the value of this particular example. diff --git a/spec/unit/provider/service/windows_spec.rb b/spec/unit/provider/service/windows_spec.rb index 4209624057..2815c266b8 100644 --- a/spec/unit/provider/service/windows_spec.rb +++ b/spec/unit/provider/service/windows_spec.rb @@ -431,7 +431,7 @@ describe Chef::Provider::Service::Windows, "load_current_resource" do expect(provider.resource_updated?).to be false end - it "does not convigure service" do + it "does not configure service" do expect(Win32::Service).to_not receive(:configure) provider.action_configure end diff --git a/spec/unit/resource/cron_spec.rb b/spec/unit/resource/cron_spec.rb index e70e8aa76a..4322d6c24b 100644 --- a/spec/unit/resource/cron_spec.rb +++ b/spec/unit/resource/cron_spec.rb @@ -139,7 +139,7 @@ describe Chef::Resource::Cron do end end - describe "when it has a time (minute, hour, day, month, weeekend) and user" do + describe "when it has a time (minute, hour, day, month, weekend) and user" do before do resource.command("tackle") resource.minute("1") diff --git a/spec/unit/resource/remote_file_spec.rb b/spec/unit/resource/remote_file_spec.rb index 27b889ea9e..62dca20ddf 100644 --- a/spec/unit/resource/remote_file_spec.rb +++ b/spec/unit/resource/remote_file_spec.rb @@ -78,7 +78,7 @@ describe Chef::Resource::RemoteFile do expect(resource.source).to eql(["file:///C:/foo bar"]) end - it "accepts a delayed evalutator (string) for the remote file source" do + it "accepts a delayed evaluator (string) for the remote file source" do resource.source Chef::DelayedEvaluator.new { "http://opscode.com/" } expect(resource.source).to eql([ "http://opscode.com/" ]) end @@ -165,7 +165,7 @@ describe Chef::Resource::RemoteFile do expect(resource.use_last_modified).to be_truthy end - it "disables etags indivdually" do + it "disables etags individually" do resource.use_etags(false) expect(resource.use_etags).to be_falsey expect(resource.use_last_modified).to be_truthy diff --git a/spec/unit/resource/windows_workgroup_spec.rb b/spec/unit/resource/windows_workgroup_spec.rb index 0ea0d8b291..14cec253bf 100644 --- a/spec/unit/resource/windows_workgroup_spec.rb +++ b/spec/unit/resource/windows_workgroup_spec.rb @@ -58,13 +58,13 @@ describe Chef::Resource::WindowsWorkgroup do describe "#join_command" do context "if password property is not specified" do - it "contructs a command without credentials" do + it "constructs a command without credentials" do expect(provider.join_command).to eql("Add-Computer -WorkgroupName example -Force") end end context "if password property is specified" do - it "contructs a command without credentials" do + it "constructs a command without credentials" do resource.password("1234") resource.user("admin") expect(provider.join_command).to eql("$pswd = ConvertTo-SecureString '1234' -AsPlainText -Force;$credential = New-Object System.Management.Automation.PSCredential (\"admin\",$pswd);Add-Computer -WorkgroupName example -Credential $credential -Force") diff --git a/spec/unit/resource_reporter_spec.rb b/spec/unit/resource_reporter_spec.rb index 22bba578eb..1c6b063198 100644 --- a/spec/unit/resource_reporter_spec.rb +++ b/spec/unit/resource_reporter_spec.rb @@ -794,7 +794,7 @@ describe Chef::ResourceReporter do end - it "should raise if an unkwown error happens" do + it "should raise if an unknown error happens" do allow(rest_client).to receive(:raw_request).and_raise(Exception.new) expect do diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb index d6b67e6f2e..d41cc0e8a3 100644 --- a/spec/unit/resource_spec.rb +++ b/spec/unit/resource_spec.rb @@ -366,7 +366,7 @@ describe Chef::Resource do end context "when property is sensitive" do - it "supresses that properties value" do + it "suppresses that properties value" do resource_class = Class.new(Chef::Resource) { property :foo, String, sensitive: true } resource = resource_class.new("sensitive_property_tests") resource.foo = "some value" @@ -375,7 +375,7 @@ describe Chef::Resource do end context "when property is required" do - it "does not propagate vailidation errors" do + it "does not propagate validation errors" do resource_class = Class.new(Chef::Resource) { property :foo, String, required: true } resource = resource_class.new("required_property_tests") expect { resource.to_text }.to_not raise_error Chef::Exceptions::ValidationFailed @@ -1027,7 +1027,7 @@ describe Chef::Resource do describe "with a syntax error in the resource spec" do - it "raises an exception immmediately" do + it "raises an exception immediately" do expect do resource.notifies(:run, "typo[missing-closing-bracket") end.to raise_error(Chef::Exceptions::InvalidResourceSpecification) @@ -1069,7 +1069,7 @@ describe Chef::Resource do error_inspector = Chef::Formatters::ErrorInspectors::ResourceFailureInspector.new(resource, action, err) description = Chef::Formatters::ErrorDescription.new("test") error_inspector.add_explanation(description) - Chef::Log.info("descrtiption: #{description.inspect},error_inspector: #{error_inspector}") + Chef::Log.info("description: #{description.inspect},error_inspector: #{error_inspector}") description.sections[1]["Compiled Resource:"] end diff --git a/spec/unit/run_list/versioned_recipe_list_spec.rb b/spec/unit/run_list/versioned_recipe_list_spec.rb index e116ffc130..03eef8da3c 100644 --- a/spec/unit/run_list/versioned_recipe_list_spec.rb +++ b/spec/unit/run_list/versioned_recipe_list_spec.rb @@ -69,7 +69,7 @@ describe Chef::RunList::VersionedRecipeList do expect(list.with_versions).to include({ name: "rails", version: "1.0.0" }) end - it "should allow you to spcify no version, even when a version already exists" do + it "should allow you to specify no version, even when a version already exists" do list.add_recipe "rails", "1.0.0" list.add_recipe "rails" expect(list.with_versions).to include({ name: "rails", version: "1.0.0" }) diff --git a/spec/unit/user_v1_spec.rb b/spec/unit/user_v1_spec.rb index 4bde7278fe..965d3e7719 100644 --- a/spec/unit/user_v1_spec.rb +++ b/spec/unit/user_v1_spec.rb @@ -26,7 +26,7 @@ describe Chef::UserV1 do @user = Chef::UserV1.new end - shared_examples_for "string fields with no contraints" do + shared_examples_for "string fields with no constraints" do it "should let you set the public key" do expect(@user.send(method, "some_string")).to eq("some_string") end @@ -109,49 +109,49 @@ describe Chef::UserV1 do describe "string fields" do describe "public_key" do - it_should_behave_like "string fields with no contraints" do + it_should_behave_like "string fields with no constraints" do let(:method) { :public_key } end end describe "private_key" do - it_should_behave_like "string fields with no contraints" do + it_should_behave_like "string fields with no constraints" do let(:method) { :private_key } end end describe "display_name" do - it_should_behave_like "string fields with no contraints" do + it_should_behave_like "string fields with no constraints" do let(:method) { :display_name } end end describe "first_name" do - it_should_behave_like "string fields with no contraints" do + it_should_behave_like "string fields with no constraints" do let(:method) { :first_name } end end describe "middle_name" do - it_should_behave_like "string fields with no contraints" do + it_should_behave_like "string fields with no constraints" do let(:method) { :middle_name } end end describe "last_name" do - it_should_behave_like "string fields with no contraints" do + it_should_behave_like "string fields with no constraints" do let(:method) { :last_name } end end describe "email" do - it_should_behave_like "string fields with no contraints" do + it_should_behave_like "string fields with no constraints" do let(:method) { :email } end end describe "password" do - it_should_behave_like "string fields with no contraints" do + it_should_behave_like "string fields with no constraints" do let(:method) { :password } end end diff --git a/spec/unit/util/diff_spec.rb b/spec/unit/util/diff_spec.rb index 70376bcdb1..113910ed30 100644 --- a/spec/unit/util/diff_spec.rb +++ b/spec/unit/util/diff_spec.rb @@ -402,7 +402,7 @@ shared_examples_for "a diff util" do end end - it "should identify null-teriminated multi-line string files as binary" do + it "should identify null-terminated multi-line string files as binary" do Tempfile.open("chef-util-diff-spec") do |file| file.write("This is a binary file.\nNo Really\nit is\0") file.close diff --git a/spec/unit/util/dsc/resource_store.rb b/spec/unit/util/dsc/resource_store.rb index a864a2c1da..a91b10d3c0 100644 --- a/spec/unit/util/dsc/resource_store.rb +++ b/spec/unit/util/dsc/resource_store.rb @@ -55,7 +55,7 @@ describe Chef::Util::DSC::ResourceStore do expect(resource_store.find("foo")).to eql([resource_a]) end - it "returns multiple resoures if they are found" do + it "returns multiple resources if they are found" do expect(resource_store).to receive(:query_resource).and_return([resource_a, resource_b]) expect(resource_store.find("foo")).to include(resource_a, resource_b) end diff --git a/spec/unit/util/file_edit_spec.rb b/spec/unit/util/file_edit_spec.rb index 5c5b04d8a5..14e675d41c 100644 --- a/spec/unit/util/file_edit_spec.rb +++ b/spec/unit/util/file_edit_spec.rb @@ -105,7 +105,7 @@ describe Chef::Util::FileEdit do target_file.close! end - describe "initialiize" do + describe "initialize" do it "should create a new Chef::Util::FileEdit object" do expect(fedit).to be_instance_of(Chef::Util::FileEdit) end diff --git a/spec/unit/util/windows/logon_session_spec.rb b/spec/unit/util/windows/logon_session_spec.rb index 8a94802bf6..8d8d613b77 100644 --- a/spec/unit/util/windows/logon_session_spec.rb +++ b/spec/unit/util/windows/logon_session_spec.rb @@ -31,7 +31,7 @@ describe ::Chef::Util::Windows::LogonSession do let(:authentication) { :remote } shared_examples_for "it received syntactically invalid credentials" do - it "does not raisees an exception when it is initialized" do + it "does not raises an exception when it is initialized" do expect { session }.to raise_error(ArgumentError) end end diff --git a/spec/unit/win32/link_spec.rb b/spec/unit/win32/link_spec.rb index de7b165dd0..04fc045703 100644 --- a/spec/unit/win32/link_spec.rb +++ b/spec/unit/win32/link_spec.rb @@ -46,14 +46,14 @@ describe Chef::ReservedNames::Win32::File, :windows_only do allow(Chef::ReservedNames::Win32::File).to receive(:CreateSymbolicLinkW).with(any_args) { "don't //actually// do this" } end - it "will not pass the unpirivileged symlink flag if the node is not Windows 10" do + it "will not pass the unprivileged symlink flag if the node is not Windows 10" do allow_any_instance_of(Chef::ReservedNames::Win32::Version).to receive(:windows_10?).and_return(false) expect(Chef::ReservedNames::Win32::File).to receive(:CreateSymbolicLinkW).with("b", "a", without_privilege) described_class.symlink("a", "b") end - it "will not pass the unpirivileged symlink flag if the node is not at least Windows 10 Creators Update" do + it "will not pass the unprivileged symlink flag if the node is not at least Windows 10 Creators Update" do allow_any_instance_of(Chef::ReservedNames::Win32::Version).to receive(:windows_10?).and_return(true) allow_any_instance_of(Chef::ReservedNames::Win32::Version).to receive(:build_number).and_return(1) @@ -61,7 +61,7 @@ describe Chef::ReservedNames::Win32::File, :windows_only do described_class.symlink("a", "b") end - it "will pass the unpirivileged symlink flag if the node is Windows 10 Creators Update or higher" do + it "will pass the unprivileged symlink flag if the node is Windows 10 Creators Update or higher" do allow_any_instance_of(Chef::ReservedNames::Win32::Version).to receive(:windows_10?).and_return(true) allow_any_instance_of(Chef::ReservedNames::Win32::Version).to receive(:build_number).and_return(15063) |