aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance/tests/should_destroy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/tests/should_destroy.rb')
-rw-r--r--spec/acceptance/tests/should_destroy.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/acceptance/tests/should_destroy.rb b/spec/acceptance/tests/should_destroy.rb
index 97f1477..f55c24b 100644
--- a/spec/acceptance/tests/should_destroy.rb
+++ b/spec/acceptance/tests/should_destroy.rb
@@ -1,27 +1,27 @@
-test_name "should be able to remove a host record"
+test_name 'should be able to remove a host record'
tag 'audit:low',
'audit:refactor', # Use block style `test_name`
'audit:acceptance' # Could be done at the integration (or unit) layer though
- # actual changing of resources could irreparably damage a
- # host running this, or require special permissions.
+# actual changing of resources could irreparably damage a
+# host running this, or require special permissions.
agents.each do |agent|
file = agent.tmpfile('host-destroy')
- line = "127.0.0.7 test1"
+ line = '127.0.0.7 test1'
- step "set up files for the test"
+ step 'set up files for the test'
on agent, "printf '#{line}\n' > #{file}"
- step "delete the resource from the file"
+ step 'delete the resource from the file'
on(agent, puppet_resource('host', 'test1', "target=#{file}",
- 'ensure=absent', 'ip=127.0.0.7'))
+ 'ensure=absent', 'ip=127.0.0.7'))
- step "verify that the content was removed"
+ step 'verify that the content was removed'
on(agent, "cat #{file}; rm -f #{file}") do
- fail_test "the content was still present" if stdout.include? line
+ fail_test 'the content was still present' if stdout.include? line
end
- step "clean up after the test"
+ step 'clean up after the test'
on agent, "rm -f #{file}"
end