Sha256: 38f1b292f864f3b5b050221ba29f88bde8e098ba9f0741ce12efd7b31c551025
Contents?: true
Size: 596 Bytes
Versions: 12
Compression:
Stored size: 596 Bytes
Contents
# frozen_string_literal: true module Truemail module RSpec module AuditorHelper def create_auditor( success: true, current_host_ip: ::FFaker::Internet.ip_v4_address, warnings: { ip: Truemail::Audit::Ip::IPIFY_ERROR }, configuration: create_configuration ) Truemail::Auditor.new(configuration: configuration).tap do |auditor| auditor_result = auditor.result auditor_result.current_host_ip = current_host_ip if success auditor_result.warnings = warnings unless success end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems