Add tests for booth controller

This commit is contained in:
nasia 2017-07-16 18:20:12 +03:00
parent 0528dbf8e8
commit 103a605a32
6 changed files with 161 additions and 7 deletions

View file

@ -55,7 +55,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