mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
12 lines
306 B
Ruby
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
|