mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
12 lines
275 B
Ruby
12 lines
275 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|