lib/teststrap.rb in teststrap-1.2.5 vs lib/teststrap.rb in teststrap-1.3.0

- old
+ new

@@ -7,31 +7,29 @@ attr_accessor :cookbook_name default_task :generate_tests - desc 'generate_tests', 'generate test files' + desc "generate_tests", "generate test files" def generate_tests @cookbook_name = current_directory_name - puts 'generating testfiles::' - copy_file '.gitignore' - copy_file '.rubocop.yml' - copy_file 'Berksfile' - copy_file 'chefignore' - copy_file 'Gemfile' - copy_file 'LICENSE' - copy_file 'rubocop-disabled.yml' - copy_file 'Strainerfile' - copy_file 'Thorfile' - template 'spec/default_spec.rb' - template 'spec/chefspec_helper.rb' - template 'test/integration/default/serverspec/localhost/default_spec.rb', - "test/integration/#{@cookbook_name}/serverspec/localhost/default_spec.rb" - template 'test/integration/default/serverspec/spec_helper.rb', - "test/integration/#{@cookbook_name}/serverspec/spec_helper.rb" - template '.kitchen.yml' - template 'metadata.rb' - template 'README.md' + puts "generating testfiles::" + copy_file ".gitignore" + copy_file ".rubocop.yml" + copy_file "Berksfile" + copy_file "chefignore" + copy_file "Gemfile" + copy_file "LICENSE" + copy_file "rubocop-disabled.yml" + copy_file "Strainerfile" + template "spec/default_spec.rb" + template "spec/chefspec_helper.rb" + template "test/integration/default/serverspec/default_spec.rb" + template "test/integration/default/serverspec/spec_helper.rb" + template ".kitchen.yml" + template "metadata.rb" + template "README.md" + remove_file "Thorfile" end no_commands do def current_directory_name Dir.pwd.split('/').last