summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJon Cowie <jonlives@gmail.com>2017-10-03 22:14:16 +0100
committerGitHub <noreply@github.com>2017-10-03 22:14:16 +0100
commit913ea3f7f8e3363caa71db6b4e16cbf2ed481363 (patch)
treed2848b750773d650667d5a6c953dd09feb43e95f /spec
parentc39921025ac79db1448244c8cf69b810d38ea31b (diff)
parent514ae2ab9c76dab008404137e7492f4e57e9cabc (diff)
downloadchef-913ea3f7f8e3363caa71db6b4e16cbf2ed481363.tar.gz
Merge pull request #6428 from chef/jcowie_package_upgrade_fixes
Fixes to package upgrade behaviour
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/package/rubygems_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/provider/package/rubygems_spec.rb b/spec/unit/provider/package/rubygems_spec.rb
index 856f8d460c..ac2b511ca9 100644
--- a/spec/unit/provider/package/rubygems_spec.rb
+++ b/spec/unit/provider/package/rubygems_spec.rb
@@ -383,6 +383,11 @@ describe Chef::Provider::Package::Rubygems do
provider.load_current_resource
expect(provider.target_version_already_installed?(provider.current_resource.version, new_resource.version)).to be_falsey
end
+
+ it "version_equals? should return false so that we can search for candidates" do
+ provider.load_current_resource
+ expect(provider.version_equals?(provider.current_resource.version, new_resource.version)).to be_falsey
+ end
end
describe "when new_resource version is an rspec version" do