summaryrefslogtreecommitdiff
path: root/qa/qa/runtime/mail_hog.rb
blob: 899450a154026aa15552bd467eeae8ed5bd8c041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true
module QA
  module Runtime
    module MailHog
      def self.base_url
        host = QA::Runtime::Env.mailhog_hostname || 'localhost'
        "http://#{host}:8025"
      end

      def self.api_messages_url
        "#{base_url}/api/v2/messages"
      end
    end
  end
end