test/qmrf-report.rb in qsar-report-0.0.5 vs test/qmrf-report.rb in qsar-report-1.0.0

- old
+ new

@@ -69,6 +69,14 @@ report.change_catalog :authors_catalog, :secondauthor, {:name => "Dr. Mysec MysecName", :url => "http://myauthor.dom", :email => "myauthor@myauthor.dom"} report.ref_catalog :qmrf_authors, :authors_catalog, :secondauthor assert_equal report.to_xml, File.read(File.join(File.join(DATA_DIR, "qmrf_t8.xml"))) end + def test_9_set_attributes + report = OpenTox::QMRFReport.new + report.change_attributes "training_set_data", {:inchi => "Yes", :smiles => "Yes"} + assert_equal report.to_xml, File.read(File.join(File.join(DATA_DIR, "qmrf_t9y.xml"))) + report.change_attributes "training_set_data", {:inchi => "No", :smiles => "No"} + assert_equal report.to_xml, File.read(File.join(File.join(DATA_DIR, "qmrf_t9n.xml"))) + end + end