1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/test/models/ticket_test.rb
2016-09-08 16:58:18 +02:00

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