mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
10 lines
242 B
Ruby
10 lines
242 B
Ruby
require 'test_helper'
|
|
|
|
class TicketTest < ActiveSupport::TestCase
|
|
test "ticket must have at least 1 seat" do
|
|
t = Ticket.new({event_price_category_id: 1, booked: -1})
|
|
assert t.invalid?
|
|
assert t.errors[:booked].present?
|
|
end
|
|
end
|