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

9 lines
203 B
Ruby
Raw Normal View History

2016-08-03 17:25:00 +02:00
require 'test_helper'
class CouponTest < ActiveSupport::TestCase
test 'coupon must have a valid percentage' do
c = Coupon.new({code: 'DISCOUNT', percent_off: 800})
assert c.invalid?
end
end