class Spreewald::Steps::FollowTheLink::NoVisitableLinkFound

Public Class Methods

new(paths, index) click to toggle source
Calls superclass method
# File lib/steps/follow_the_link.rb, line 5
        def initialize(paths, index)
          error_message = <<~MESSAGE
            Could not follow the #{index} link in the email.
          MESSAGE
          if paths&.empty?
            error_message << "Found no link paths in the email."
          else
            error_message << "Found these link paths in the email: #{paths.join(', ')}"
          end
          super(error_message)
        end