#756: remove 'build_canceled' status from transitions "tests_failed" and "build_error"

This commit is contained in:
Vokhmin Alexey V 2013-02-06 14:59:36 +04:00
parent e72bd2d4f1
commit 376d50c8fb
1 changed files with 2 additions and 2 deletions

View File

@ -204,11 +204,11 @@ class BuildList < ActiveRecord::Base
end
event :build_error do
transition [:build_started, :build_canceled, :build_canceling] => :build_error
transition [:build_started, :build_canceling] => :build_error
end
event :tests_failed do
transition [:build_started, :build_canceled, :build_canceling] => :tests_failed
transition [:build_started, :build_canceling] => :tests_failed
end
HUMAN_STATUSES.each do |code,name|