features/steps/gitcycle_steps.rb in gitcycle-0.2.12 vs features/steps/gitcycle_steps.rb in gitcycle-0.2.13

- old
+ new

@@ -138,15 +138,11 @@ "#{config['owner']}/#{config['repo']}", config['token_qa'] ].join(' ') end -When /^I execute gitcycle branch with the Lighthouse ticket URL$/ do - $execute << "branch #{$ticket.url}" -end - -When /^I execute gitcycle redo with the Lighthouse ticket URL$/ do - $execute << "redo #{$ticket.url}" +When /^I execute gitcycle (.*) with the Lighthouse ticket URL$/ do |cmd| + $execute << "#{cmd} #{$ticket.url}" end When /^I cd to the (.*) repo$/ do |user| if ENV['REPO'] puts "(overiding repo as #{ENV['REPO']})" \ No newline at end of file