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

19 lines
766 B
Ruby
Raw Normal View History

2018-11-26 08:39:32 -05:00
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe MembershipApplication, type: :model do
subject { create :membership_application }
it { is_expected.to validate_presence_of :first_name }
2018-11-26 09:15:29 -05:00
it { is_expected.to validate_presence_of :last_name }
it { is_expected.not_to validate_presence_of :middle_name }
it { is_expected.to validate_presence_of :date_of_birth }
it { is_expected.not_to validate_presence_of :occupation }
it { is_expected.to validate_presence_of :email }
it { is_expected.to validate_presence_of :phone_number }
it { is_expected.not_to validate_presence_of :telegram_username }
it { is_expected.not_to validate_presence_of :organization_membership }
2018-11-28 08:11:39 -05:00
it { is_expected.not_to validate_presence_of :comment }
2018-11-26 08:39:32 -05:00
end