summaryrefslogtreecommitdiff
path: root/spec/support/dns.rb
blob: 3e5c8e698e16069378264ca271648a72dbc74ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require Rails.root.join("spec/support/helpers/dns_helpers")

RSpec.configure do |config|
  config.include DnsHelpers

  config.before do
    block_dns!
  end

  config.before(:each, :permit_dns) do
    permit_dns!
  end

  config.before(:each, :stub_invalid_dns_only) do
    permit_dns!
    stub_invalid_dns!
  end
end