require 'minitest/autorun'
require 'minitest/unit'
require 'test_friends/resolv_error_stub'

class ResolvErrorStubTest < MiniTest::Unit::TestCase
  include TestFriends::ResolvErrorStub

  def test_force_resolv_error
    force_resolv_error do
      assert_raises(Resolv::ResolvError) { Resolv.getaddresses 'www.example.com' }
    end
  end
end
