flowerbox/features/step_definitions/when/i_run_flowerbox.rb

11 lines
278 B
Ruby
Raw Normal View History

2012-02-22 16:47:07 +00:00
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