diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb b/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb index 5cf35fb..75eba1e 100644 --- a/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb +++ b/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb @@ -9,7 +9,7 @@ RSpec.context 'ssh_authorized_key: Create' do before(:each) do posix_agents.each do |agent| on(agent, "cp #{auth_keys} /tmp/auth_keys", acceptable_exit_codes: [0, 1]) - on(agent, "chown $LOGNAME #{auth_keys}") + on(agent, "rm -f $LOGNAME #{auth_keys}") end end |