opentox/test — Issue #4: Dataset not found in test!
Author: amaunz
Created: 2011-11-16 09:30:34+00:00
State: open

Test "test_create_regression_model" barfs this error, succeeds however

I, [2011-11-16T10:24:10.117329 #25454] INFO -- : test :: running model http://x61s.fdm.uni-freiburg.de/model/56, params: {:compound_uri=>"http://x61s.fdm.uni-freiburg.de/compound/InChI=1S/C6H8N2/c7-8-6-4-2-1-3-5-6/h1-5,8H,7H2", :subjectid=>nil}, accept: application/json :: /model.rb:198:in `run'
OpenTox::NotFoundError - Dataset 437 not found.:
./application.rb:111
/home/am/opentox-ruby/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:700:in `instance_eval'
/home/am/opentox-ruby/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:700:in `filter!'
/home/am/opentox-ruby/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:700:in `each'

application.rb: 111 in dataset service is the reason for this:

raise OpenTox::NotFoundError.new "Dataset #{@id} not found." unless File.exists? @json_file

Please fix!