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

10 lines
273 B
Ruby
Raw Normal View History

2016-08-24 12:30:48 +02:00
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
2016-08-24 12:30:48 +02:00
end