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
commit6615f7100958624b428f179d0a2ddc4b098e5c3b (patch)
treea61c44e3f880f1195dca5344ca1faab636f50c54 /t
parentfd5ac2c771088e47ecf9d9828a089841c17f0b7b (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))