1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/spec/models/passport_map_spec.rb

20 lines
559 B
Ruby
Raw Normal View History

2018-12-02 09:16:16 -05:00
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe PassportMap do
subject { create :passport_map }
2019-03-26 18:06:03 -04:00
it_behaves_like 'nameable'
2018-12-02 09:16:16 -05:00
it { is_expected.to belong_to :passport }
it { is_expected.to validate_presence_of(:passport).with_message(:required) }
it { is_expected.to validate_presence_of :series }
it { is_expected.to validate_presence_of :number }
it { is_expected.to validate_presence_of :issued_by }
it { is_expected.to validate_presence_of :unit_code }
it { is_expected.to validate_presence_of :date_of_issue }
end