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