Skip to content

Commit

Permalink
Merge pull request #35 from chef/sr/fix-integration-test
Browse files Browse the repository at this point in the history
adapt integration test to changes in command_wrapper
  • Loading branch information
arlimus committed Dec 7, 2015
2 parents 66c92f0 + 93b158c commit f7213d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/sudo/passwd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
end

it 'is not running sudo without password' do
run_as('whoami', { sudo: true })
.exit_status.wont_equal 0
err = ->{Train.create('local', { sudo: true }).connection}.must_raise Train::UserError
err.message.must_match /Sudo requires a password/
end

it 'is running passwd sudo' do
Expand Down

0 comments on commit f7213d3

Please sign in to comment.