exe/soaspec in soaspec-0.2.2 vs exe/soaspec in soaspec-0.2.3

- old
+ new

@@ -53,10 +53,17 @@ LONGDESC desc 'add [type] [name]', 'Add new ExchangeHandler' def add(type = 'rest', name = 'TestService') raise "Type '#{type}' is not available" unless %w[rest soap].include? type @name = name # Use instance variable for ERB - create_file(filename: File.join('lib', "#{name.snakecase}.rb"), content: retrieve_contents("lib/new_#{type}_service.rb")) + create_file filename: File.join('lib', "#{name.snakecase}.rb"), + content: retrieve_contents(File.join('lib', "new_#{type}_service.rb")) + end + + desc 'cucumber', 'Add cucumber generic steps template within step_definitions folder' + def cucumber + create_file filename: File.join('features', 'step_definitions', 'generic_steps.rb'), + content: retrieve_contents(File.join('../cucumber', 'generic_steps.rb'), false) end desc 'generate', 'Generate initial test code from wsdl' long_desc <<-LONGDESC `soaspec generate wsdl=wsdl name=ServiceName ` will generate the initial files and folders to test each operation in a wsdl \ No newline at end of file