Sha256: 88e7aacbf922270cb5de3d416e70eec2d46935730635ed5393a5f7a94a0ee492

Contents?: true

Size: 209 Bytes

Versions: 3

Compression:

Stored size: 209 Bytes

Contents

require 'rails_helper'

module ShoppingCart
  RSpec.describe Coupon, type: :model do
    it { is_expected.to validate_presence_of(:discount) }
    it { is_expected.to validate_uniqueness_of(:code) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loker-shopping-cart-0.1.3 spec/models/shopping_cart/coupon_spec.rb
loker-shopping-cart-0.1.2 spec/models/shopping_cart/coupon_spec.rb
loker-shopping-cart-0.1.1 spec/models/shopping_cart/coupon_spec.rb