flowerbox/features/step_definitions/when/i_run_flowerbox.rb
2012-03-24 10:17:33 -04:00

9 lines
251 B
Ruby

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