diff options
Diffstat (limited to 'spec/unit/provider')
-rw-r--r-- | spec/unit/provider/package/portage_spec.rb | 4 | ||||
-rw-r--r-- | spec/unit/provider/package/powershell_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
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) |