1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/test/models/ticket_test.rb

10 lines
242 B
Ruby
Raw Normal View History

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