From 6615f7100958624b428f179d0a2ddc4b098e5c3b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Jan 2015 11:08:01 +0000 Subject: Updated the mocha-gem usage --- t/test-dns-types.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/test-dns-types.rb b/t/test-dns-types.rb index 3f122e4..9c5b8e0 100755 --- a/t/test-dns-types.rb +++ b/t/test-dns-types.rb @@ -2,7 +2,8 @@ require 'test/unit' -require 'mocha/test_unit' +require 'rubygems' +require 'mocha/setup' require 'custodian/protocoltests' @@ -62,7 +63,7 @@ class TestDNSTypes < Test::Unit::TestCase def test_dns_protocol_test test = Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for bytemark.co.uk resolving A as '1.2.3.4,2001:lower::case,2001:UPPER::CASE'." ) test.stubs(:resolve_via).returns(%w(2001:lower::case 2001:upper::case 1.2.3.4)) - assert test.run_test, test.error + assert test.run_test, "The error was #{test.error}" # Re-stub to return just one record test.stubs(:resolve_via).returns(%w(1.2.3.4)) -- cgit v1.2.1