Skip to content

Commit

Permalink
Rename parameter name -> subject
Browse files Browse the repository at this point in the history
As discussed in #598 we change the parameter name from

  match do |name|

to

  match do |subject|
  • Loading branch information
Markus Benning committed Nov 7, 2017
1 parent b59b99f commit bb4183f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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|
if name.class.name == 'Serverspec::Type::SelinuxModule'
name.installed?(@version)
match do |subject|
if subject.class.name == 'Serverspec::Type::SelinuxModule'
subject.installed?(@version)
else
name.installed?(@provider, @version)
subject.installed?(@provider, @version)
end
end

Expand Down

0 comments on commit bb4183f

Please sign in to comment.