Browse files

(Maint) Allow creating a test file with default options

Previously even an empty hash of options needed to be specified, this
allows it to be left off to get the defaults.
  • Loading branch information...
1 parent c882090 commit f1f7d665749b9ff7afd382c86471cbf74fe34213 @zaphod42 zaphod42 committed Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 acceptance/lib/puppet/acceptance/temp_file_utils.rb
2 acceptance/lib/puppet/acceptance/temp_file_utils.rb
@@ -13,7 +13,7 @@ module TempFileUtils
# * :owner (default 'root') the username of the user that the file should be owned by
# * :group (default 'puppet') the name of the group that the file should be owned by
# * :mode (default '644') the mode (file permissions) that the file should be created with
- def create_test_file(host, file_rel_path, file_content, options)
+ def create_test_file(host, file_rel_path, file_content, options = {})
# set default options
options[:mkdirs] ||= false

0 comments on commit f1f7d66

Please sign in to comment.