1
0
Fork 0

Do not align code

This commit is contained in:
Alex Kotov 2018-11-26 19:15:29 +05:00
parent 7d0ff9214f
commit 6d10a75a70
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
3 changed files with 4 additions and 5 deletions

View file

@ -6,7 +6,7 @@ class CreateMembershipApplications < ActiveRecord::Migration[5.2]
t.timestamps null: false
t.string :first_name, null: false
t.string :last_name, null: false
t.string :last_name, null: false
t.string :middle_name
end
end

View file

@ -2,8 +2,8 @@
FactoryBot.define do
factory :membership_application do
first_name { Faker::Name.first_name }
last_name { Faker::Name.last_name }
first_name { Faker::Name.first_name }
last_name { Faker::Name.last_name }
middle_name { Faker::Name.first_name }
end
end

View file

@ -6,7 +6,6 @@ RSpec.describe MembershipApplication, type: :model do
subject { create :membership_application }
it { is_expected.to validate_presence_of :first_name }
it { is_expected.to validate_presence_of :last_name }
it { is_expected.to validate_presence_of :last_name }
it { is_expected.not_to validate_presence_of :middle_name }
end