You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
397 B
19 lines
397 B
# frozen_string_literal: true |
|
|
|
require 'rails_helper' |
|
|
|
RSpec.describe DomainResource do |
|
describe '#mx' do |
|
subject { described_class.new(domain) } |
|
|
|
let(:domain) { 'example.host' } |
|
let(:exchange) { 'mx.host' } |
|
|
|
before { configure_mx(domain: domain, exchange: exchange) } |
|
|
|
it 'returns array of hostnames' do |
|
expect(subject.mx) |
|
.to eq([exchange]) |
|
end |
|
end |
|
end
|
|
|