Fix the relationships controller spec, since it requires an extra model now (#29671)
This commit is contained in:
parent
39bac24cb7
commit
7434c9c276
|
@ -7,11 +7,12 @@ describe 'Severed relationships page' do
|
||||||
|
|
||||||
describe 'GET severed_relationships#index' do
|
describe 'GET severed_relationships#index' do
|
||||||
let(:user) { Fabricate(:user) }
|
let(:user) { Fabricate(:user) }
|
||||||
|
let(:event) { Fabricate(:account_relationship_severance_event, account: user.account) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
sign_in user
|
sign_in user
|
||||||
|
|
||||||
Fabricate(:severed_relationship, local_account: user.account)
|
Fabricate.times(3, :severed_relationship, local_account: user.account, relationship_severance_event: event.relationship_severance_event)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns http success' do
|
it 'returns http success' do
|
||||||
|
|
Loading…
Reference in New Issue