Rename factory "person" to "initial_person"
This commit is contained in:
parent
a571f7600d
commit
fb99c6e4ef
4 changed files with 4 additions and 5 deletions
|
@ -8,7 +8,7 @@ FactoryBot.define do
|
|||
end
|
||||
|
||||
factory :personal_account, parent: :usual_account do
|
||||
association :person
|
||||
association :person, factory: :initial_person
|
||||
end
|
||||
|
||||
factory :superuser_account, parent: :personal_account do
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :person do
|
||||
end
|
||||
factory :initial_person, class: Person
|
||||
end
|
||||
|
|
|
@ -41,7 +41,7 @@ Given 'I am signed in with email {string} ' \
|
|||
end
|
||||
|
||||
Given 'I am signed in as party member' do
|
||||
@person = create :person
|
||||
@person = create :initial_person
|
||||
@account = create :usual_account, person: @person
|
||||
create :membership_app, account: @account
|
||||
@user = @account.user
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Person do
|
||||
subject { create :person }
|
||||
subject { create :initial_person }
|
||||
|
||||
it { is_expected.to belong_to(:regional_office).optional }
|
||||
|
||||
|
|
Reference in a new issue