Do not align code
This commit is contained in:
parent
7d0ff9214f
commit
6d10a75a70
3 changed files with 4 additions and 5 deletions
|
@ -6,7 +6,7 @@ class CreateMembershipApplications < ActiveRecord::Migration[5.2]
|
||||||
t.timestamps null: false
|
t.timestamps null: false
|
||||||
|
|
||||||
t.string :first_name, null: false
|
t.string :first_name, null: false
|
||||||
t.string :last_name, null: false
|
t.string :last_name, null: false
|
||||||
t.string :middle_name
|
t.string :middle_name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
FactoryBot.define do
|
FactoryBot.define do
|
||||||
factory :membership_application do
|
factory :membership_application do
|
||||||
first_name { Faker::Name.first_name }
|
first_name { Faker::Name.first_name }
|
||||||
last_name { Faker::Name.last_name }
|
last_name { Faker::Name.last_name }
|
||||||
middle_name { Faker::Name.first_name }
|
middle_name { Faker::Name.first_name }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,7 +6,6 @@ RSpec.describe MembershipApplication, type: :model do
|
||||||
subject { create :membership_application }
|
subject { create :membership_application }
|
||||||
|
|
||||||
it { is_expected.to validate_presence_of :first_name }
|
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 }
|
it { is_expected.not_to validate_presence_of :middle_name }
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue