features/step_definitions/generator_steps.rb in technicalpickles-jeweler-1.0.2 vs features/step_definitions/generator_steps.rb in technicalpickles-jeweler-1.1.0

- old
+ new

@@ -28,11 +28,19 @@ And /^I want rubyforge setup$/ do @use_rubyforge = true end +Given /^I want to use yard instead of rdoc$/ do + @documentation_framework = "yard" +end +Given /^I want to use rdoc instead of yard$/ do + @documentation_framework = "rdoc" +end + + Given /^I intend to test with (\w+)$/ do |testing_framework| @testing_framework = testing_framework.to_sym end Given /^I have configured git sanely$/ do @@ -75,9 +83,10 @@ @use_cucumber ? '--cucumber' : nil, @testing_framework ? "--#{@testing_framework}" : nil, @use_rubyforge ? '--rubyforge' : nil, @use_roodi ? '--roodi' : nil, @use_reek ? '--reek' : nil, + @documentation_framework ? "--#{@documentation_framework}" : nil, @name].compact @stdout = OutputCatcher.catch_out do Jeweler::Generator::Application.run! *arguments end