summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-01-13 11:41:45 +0000
committerSteve Kemp <steve@steve.org.uk>2015-01-13 11:41:45 +0000
commit79e74d4b64a5d88eff352394f0c8d53f46edf4ef (patch)
tree26f7c9d531c8a9783124fda9981066fed8064d1a /t
parent9aaef45c19bf1f0c459a8f4a6ef9f5eb8c26e543 (diff)
Test that returning the test-definition works.
This will be needed when we want to save to the redis-log.
Diffstat (limited to 't')
-rwxr-xr-xt/test-custodian-parser.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/test-custodian-parser.rb b/t/test-custodian-parser.rb
index 841721d..e7b0bb5 100755
--- a/t/test-custodian-parser.rb
+++ b/t/test-custodian-parser.rb
@@ -299,8 +299,8 @@ EOF
# Create the new parser
#
obj = Custodian::TestFactory.create( str )
-
- assert(obj)
+ assert(obj, "Instantiating a test works")
+ assert( str == obj.to_s, "Getting back the test works" )
if ( follow )
assert( obj.follow_redirects? )
@@ -335,8 +335,8 @@ EOF
# Create the new parser
#
obj = Custodian::TestFactory.create( str )
-
- assert(obj)
+ assert(obj, "Instantiating a test works")
+ assert( str == obj.to_s, "Getting back the test works" )
if ( cb )
assert( obj.cache_busting? )
@@ -378,8 +378,8 @@ EOF
# Create the new parser
#
obj = Custodian::TestFactory.create( str )
-
- assert(obj)
+ assert(obj, "Instantiating a test works")
+ assert( str == obj.to_s, "Getting back the test works" )
if ( fail.nil? )
assert( obj.get_notification_text().nil? )