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

12 lines
306 B
Ruby
Raw Normal View History

2023-03-22 17:30:37 +01:00
# frozen_string_literal: true
2016-08-24 12:30:48 +02:00
require 'test_helper'
class EventPriceCategoryTest < ActiveSupport::TestCase
test "event price's category cannot be empty" do
2023-03-22 17:30:37 +01:00
epc = EventPriceCategory.new({ price_category_id: 1, event_id: 3 })
assert epc.invalid?
assert epc.errors[:amount].present?
end
2016-08-24 12:30:48 +02:00
end