Skip to content

Commit

Permalink
Merge pull request #343 from elmundio87/windows-feature-providers
Browse files Browse the repository at this point in the history
Windows feature: Search using different providers
  • Loading branch information
mizzy committed Feb 5, 2014
2 parents f76e496 + 0257b9a commit b666b4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions WINDOWS_SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ end

describe windows_feature('Minesweeper') do
it{ should be_installed }
it{ should be_installed.by("dism") }
it{ should be_installed.by("powershell") }
end
```

Expand Down
2 changes: 1 addition & 1 deletion lib/serverspec/type/windows_feature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Serverspec
module Type
class WindowsFeature < Base
def installed?(provider, version)
backend.check_windows_feature_enabled(@name)
backend.check_windows_feature_enabled(@name, provider)
end
end
end
Expand Down

0 comments on commit b666b4c

Please sign in to comment.