diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-01-13 11:41:45 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-01-13 11:41:45 +0000 |
commit | a74eade572a78297ff6f7f873acbf4a7f6c673fd (patch) | |
tree | 96e11d966e4901bc02379b091dd6cd874baaf8cf /t | |
parent | 3389249542b21459315d6a061c26f9f6cee8d84b (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-x | t/test-custodian-parser.rb | 12 |
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? ) |