2024-03-20 15:37:21 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
describe 'Severed relationships page' do
|
|
|
|
include RoutingHelper
|
|
|
|
|
|
|
|
describe 'GET severed_relationships#index' do
|
|
|
|
let(:user) { Fabricate(:user) }
|
2024-03-21 08:28:37 +00:00
|
|
|
let(:event) { Fabricate(:account_relationship_severance_event, account: user.account) }
|
2024-03-20 15:37:21 +00:00
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in user
|
|
|
|
|
2024-03-21 08:28:37 +00:00
|
|
|
Fabricate.times(3, :severed_relationship, local_account: user.account, relationship_severance_event: event.relationship_severance_event)
|
2024-03-20 15:37:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'returns http success' do
|
|
|
|
get severed_relationships_path
|
|
|
|
|
|
|
|
expect(response).to have_http_status(200)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|