From a74eade572a78297ff6f7f873acbf4a7f6c673fd Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Jan 2015 11:41:45 +0000 Subject: Test that returning the test-definition works. This will be needed when we want to save to the redis-log. --- t/test-custodian-parser.rb | 12 ++++++------ 1 file 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? ) -- cgit v1.2.1