Sha256: 39745467f4392e28098bfe9dcd7d77648ca52b9a0eb76aa30d32ffe75644544c

Contents?: true

Size: 249 Bytes

Versions: 3

Compression:

Stored size: 249 Bytes

Contents

module ShoppingCart
  RSpec.describe Delivery, type: :model do
    it { should have_many :orders }
    it { should validate_presence_of :price }
    it { should validate_presence_of :title }
    it { should validate_uniqueness_of :title }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopping-cart-0.1.2 spec/models/shopping_cart/delivery_spec.rb
shopping-cart-0.1.1 spec/models/shopping_cart/delivery_spec.rb
shopping-cart-0.1.0 spec/models/shopping_cart/delivery_spec.rb