Fix NULL MX handling and tighten DNS resolving specs (#28607)
This commit is contained in:
		@@ -128,6 +128,10 @@ RSpec.configure do |config|
 | 
			
		||||
    self.use_transactional_tests = true
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  config.before do |example|
 | 
			
		||||
    allow(Resolv::DNS).to receive(:open).and_raise('Real DNS queries are disabled, stub Resolv::DNS as needed') unless example.metadata[:type] == :system
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  config.before do |example|
 | 
			
		||||
    unless example.metadata[:paperclip_processing]
 | 
			
		||||
      allow_any_instance_of(Paperclip::Attachment).to receive(:post_process).and_return(true) # rubocop:disable RSpec/AnyInstance
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user