flowerbox/features/step_definitions/when/i_run_flowerbox.rb
2012-02-22 11:47:07 -05:00

11 lines
278 B
Ruby

When /^I run Flowerbox with "([^"]*)"$/ do |arguments|
command = %{bundle exec bin/flowerbox test #{arguments} --pwd #{@root} 2>&1}
puts command
@output = %x{#{command}}
puts @output
raise StandardError.new("Flowerbox failed: #{@output}") if $?.exitstatus != 0
end