mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
10 lines
273 B
Ruby
10 lines
273 B
Ruby
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
|