lib/serverspec/matcher/be_installed.rb in serverspec-2.41.2 vs lib/serverspec/matcher/be_installed.rb in serverspec-2.41.3
- old
+ new
@@ -1,10 +1,10 @@
RSpec::Matchers.define :be_installed do
- match do |name|
+ match do |subject|
if subject.class.name == 'Serverspec::Type::SelinuxModule'
- name.installed?(@version)
+ subject.installed?(@version)
else
- name.installed?(@provider, @version)
+ subject.installed?(@provider, @version)
end
end
description do
message = 'be installed'