From 2693e042981c99e7a938e0c24b76de55b5ea83f6 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Mon, 5 Jul 2010 10:43:51 +0200 Subject: qmrf stup for editor --- report/report_test.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'report/report_test.rb') 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" -- cgit v1.2.3