diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-07-20 11:31:27 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-07-20 11:31:27 +0200 |
commit | 5f243f1e9e0a8e12cd8a2267bcec3140d21bf445 (patch) | |
tree | e755d51a453ed710dd4d78437b197c408d5687eb /report/report_test.rb | |
parent | 2963e4f7c355394130297ad181cd30f5e78d1017 (diff) | |
parent | 2a4fe800d1fad7da3a835f664ce1af864e827c0f (diff) |
Merge commit 'mguetlein/test'
Conflicts:
application.rb
Diffstat (limited to 'report/report_test.rb')
-rw-r--r-- | report/report_test.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/report/report_test.rb b/report/report_test.rb index ff4e3db..1c838bf 100644 --- a/report/report_test.rb +++ b/report/report_test.rb @@ -16,9 +16,15 @@ class Reports::ApplicationTest < Test::Unit::TestCase end def test_nothing - - get "/report/validation/1",nil,'HTTP_ACCEPT' => "application/rdf+xml"#"application/x-yaml" - puts last_response.body.to_s + + file = File.new("qmrf-report.xml") + raise "File not found: "+file.path.to_s unless File.exist?(file.path) + data = File.read(file.path) + puts OpenTox::RestClientWrapper.post("http://localhost/validation/report/qmrf/1",{:content_type => "application/qmrf-xml"},data).to_s.chomp + + #get "/report/qmrf/1",nil,'HTTP_ACCEPT' => "application/qmrf-xml"#"application/rdf+xml"#"application/x-yaml" + #get "/report/validation/1",nil,'HTTP_ACCEPT' => "application/rdf+xml"#"application/x-yaml" + #puts last_response.body.to_s #Reports::XMLReport.generate_demo_xml_report.write_to #raise "stop" |