diff --git a/spec/acceptance/user_spec.rb b/spec/acceptance/user_spec.rb index e089c32..1ee8f0a 100644 --- a/spec/acceptance/user_spec.rb +++ b/spec/acceptance/user_spec.rb @@ -369,7 +369,7 @@ it 'can remove itself after the user was deleted' do expect(user('rustup_test')).not_to exist - apply_manifest(<<~'END') + apply_manifest(<<~'END', catch_failures: true) user { 'rustup_test': ensure => present, managehome => true, @@ -394,7 +394,7 @@ expect(file('/home/rustup_test/.bashrc').content) .to eq %(# .bashrc\n. "$HOME/.cargo/env"\n) - apply_manifest(<<~'END') + apply_manifest(<<~'END', catch_failures: true) user { 'rustup_test': ensure => absent, } @@ -421,7 +421,7 @@ expect(file('/home/rustup_test/.bashrc').content).to eq %(# .bashrc\n) # Clean up - apply_manifest(<<~'END') + apply_manifest(<<~'END', catch_failures: true) user { 'rustup_test': ensure => absent, } @@ -436,7 +436,7 @@ it 'can remove itself after the user was deleted (with custom cargo_home)' do expect(user('rustup_test')).not_to exist - apply_manifest(<<~'END') + apply_manifest(<<~'END', catch_failures: true) user { 'rustup_test': ensure => present, managehome => true, @@ -471,7 +471,7 @@ expect(file('/home/rustup_test/.bashrc').content) .to eq %(# .bashrc\n. "/home/rustup_test/a/b/.cargo/env"\n) - apply_manifest(<<~'END') + apply_manifest(<<~'END', catch_failures: true) user { 'rustup_test': ensure => absent, } @@ -499,7 +499,7 @@ expect(file('/home/rustup_test/.bashrc').content).to eq %(# .bashrc\n) # Clean up - apply_manifest(<<~'END') + apply_manifest(<<~'END', catch_failures: true) user { 'rustup_test': ensure => absent, }