Skip to content

Commit

Permalink
Merge pull request #581 from evertrue/evertrue/eherot/add_missing_und…
Browse files Browse the repository at this point in the history
…er_argument

Pass @under argument to enabled? when be_enabled applies to a service
  • Loading branch information
mizzy authored Oct 11, 2016
2 parents 0a643ec + 6e0bff2 commit 62f6a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serverspec/matcher/be_enabled.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
RSpec::Matchers.define :be_enabled do
match do |subject|
if subject.class.name == 'Serverspec::Type::Service'
subject.enabled?(@level)
subject.enabled?(@level, @under)
else
subject.enabled?
end
Expand Down

0 comments on commit 62f6a98

Please sign in to comment.