Avoid validate: false save in expired poll create activity spec (#33367)
				
					
				
			This commit is contained in:
		
							parent
							
								
									344e2903b3
								
							
						
					
					
						commit
						d2fbf42b0e
					
				@ -993,9 +993,9 @@ RSpec.describe ActivityPub::Activity::Create do
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      context 'when a vote to an expired local poll' do
 | 
					      context 'when a vote to an expired local poll' do
 | 
				
			||||||
        let(:poll) do
 | 
					        let(:poll) do
 | 
				
			||||||
          poll = Fabricate.build(:poll, options: %w(Yellow Blue), expires_at: 1.day.ago)
 | 
					          travel_to 2.days.ago do
 | 
				
			||||||
          poll.save(validate: false)
 | 
					            Fabricate(:poll, options: %w(Yellow Blue), expires_at: 1.day.from_now)
 | 
				
			||||||
          poll
 | 
					          end
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
        let!(:local_status) { Fabricate(:status, poll: poll) }
 | 
					        let!(:local_status) { Fabricate(:status, poll: poll) }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user