summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-01-13 11:08:01 +0000
committerSteve Kemp <steve@steve.org.uk>2015-01-13 11:08:01 +0000
commite0b7d203dddc46e07f00d07a0abce1daaed5906f (patch)
tree8f02a9d63e932572e27519b17433c3d0b71ab122 /t
parentcca7533cfd2dc834858a7c277fb8877982b9c8ea (diff)
Updated the mocha-gem usage
Diffstat (limited to 't')
-rwxr-xr-xt/test-dns-types.rb5
1 files 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))