Sha256: f87f55651e8ae4b6279d55adf12b23ef977654519cca1bb938be35e27807c668

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

require 'rails_helper'

module Shopper
  RSpec.describe Address, type: :model do
    describe 'Validation' do
      it { should validate_presence_of(:country) }
    end

    describe 'Associations' do
      it { should belong_to(:country) }
      it { should belong_to(:addressable) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 spec/models/shopper/address_spec.rb