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/regional_office_spec.rb

19 lines
412 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe RegionalOffice do
subject { create :regional_office }
describe '#federal_subject' do
it { is_expected.to belong_to :federal_subject }
it do
is_expected.to \
validate_presence_of(:federal_subject)
.with_message(:required)
end
it { is_expected.to validate_uniqueness_of :federal_subject }
end
end