Skip to content

Commit

Permalink
Merge pull request #598 from benningm/bug-be-installed-matcher-expect…
Browse files Browse the repository at this point in the history
…-syntax

Fix be_installed matcher when used with expect
  • Loading branch information
mizzy authored Nov 7, 2017
2 parents 1cbc575 + bb4183f commit 784da44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/serverspec/matcher/be_installed.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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

Expand Down

0 comments on commit 784da44

Please sign in to comment.