2012-02-22 16:47:07 +00:00
|
|
|
When /^I run Flowerbox with "([^"]*)"$/ do |arguments|
|
2012-03-24 14:17:33 +00:00
|
|
|
command = %{bundle exec bin/flowerbox test #{arguments} -q --pwd #{@root} 2>&1}
|
2012-02-22 16:47:07 +00:00
|
|
|
|
2012-03-24 14:17:33 +00:00
|
|
|
@output = %x{#{command}}
|
2012-02-22 16:47:07 +00:00
|
|
|
|
|
|
|
raise StandardError.new("Flowerbox failed: #{@output}") if $?.exitstatus != 0
|
|
|
|
end
|
|
|
|
|