Add notifications of severed relationships (#27511)
This commit is contained in:
		@@ -0,0 +1,6 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
Fabricator(:account_relationship_severance_event) do
 | 
			
		||||
  account
 | 
			
		||||
  relationship_severance_event
 | 
			
		||||
end
 | 
			
		||||
@@ -0,0 +1,6 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
Fabricator(:relationship_severance_event) do
 | 
			
		||||
  type { :domain_block }
 | 
			
		||||
  target_name { 'example.com' }
 | 
			
		||||
end
 | 
			
		||||
							
								
								
									
										8
									
								
								spec/fabricators/severed_relationship_fabricator.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								spec/fabricators/severed_relationship_fabricator.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
Fabricator(:severed_relationship) do
 | 
			
		||||
  local_account { Fabricate.build(:account) }
 | 
			
		||||
  remote_account { Fabricate.build(:account) }
 | 
			
		||||
  relationship_severance_event { Fabricate.build(:relationship_severance_event) }
 | 
			
		||||
  direction { :active }
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user