Skip to content

Commit

Permalink
Better output when rake execution fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
luislavena committed Nov 25, 2008
1 parent 9189b46 commit 39ff6e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion features/step_definitions/execution.rb
@@ -1,6 +1,9 @@
Given %r{^I've already successfully executed rake task '(.*)'$} do |task_name|
emptyness = `rake #{task_name} 2>&1`
raise "rake failed with #{$?.exitstatus}" unless $?.success?
unless $?.success?
warn emptyness
raise "rake failed with #{$?.exitstatus}"
end
end

When /^rake task '(.*)' is invoked$/ do |task_name|
Expand Down

0 comments on commit 39ff6e4

Please sign in to comment.