1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/test/models/event_price_category_test.rb
2023-03-22 17:30:37 +01:00

12 lines
306 B
Ruby

# frozen_string_literal: true
require 'test_helper'
class EventPriceCategoryTest < ActiveSupport::TestCase
test "event price's category cannot be empty" do
epc = EventPriceCategory.new({ price_category_id: 1, event_id: 3 })
assert epc.invalid?
assert epc.errors[:amount].present?
end
end