add tests for controller

This commit is contained in:
nasia 2017-07-16 18:20:12 +03:00
parent 6831c000c9
commit 48a475ca12
4 changed files with 156 additions and 4 deletions

View file

@ -54,7 +54,7 @@ class Booth < ActiveRecord::Base
transitions to: :rejected, from: [:new, :to_reject]
end
event :cancel do
transitions to: :canceled, from: [:accepted, :rejected]
transitions to: :canceled, from: [:accepted, :rejected, :to_accept, :to_reject]
end
end