Skip to content

Commit

Permalink
Merge pull request #19 from RoboticCheese/jdh-switch-process-test-back
Browse files Browse the repository at this point in the history
Use the windows_registry_key ServerSpec resource
  • Loading branch information
hartmantis committed Aug 28, 2015
2 parents 4235c34 + e9bd4d5 commit f2c2d6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/default/serverspec/localhost/app_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
end
end

describe command(
'Get-ItemProperty "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"'
describe windows_registry_key(
'HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run'
), if: os[:family] == 'windows' do
it 'indicates Divvy is enabled' do
expect(subject.stdout).to match(/^WinDivvy +:/)
expect(subject).to have_property('WinDivvy')
end
end

Expand Down

0 comments on commit f2c2d6e

Please sign in to comment.