1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/test/models/event_price_category_test.rb
2016-09-08 16:58:18 +02:00

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