---
Pushed fixes Another fix for sending mails and Fixed tests for sending mails
The following stuff must be corrected:
Stuff begins to work. Testing manually showed the chapter "Unerwünschte Wirkungen" for Actemra and searching for "Kopfschmerzen", but the selected drug got lost as the URL was http://oddb-ci2.dyndns.org/de/gcc
Clicking "Suchen" in the watir test did not show anything. Breaked and clicked it manually and searching started. After pressing back I did see the URL http://oddb-ci2.dyndns.org/de/gcc/fachinfo_search/ean/7680588680028?
with the error message NoMethodError undefined method `gsub!' for #<ODDB::FachinfoDocument2001:0x007f1804395800>
In oddbd output did see
error in SBSM::Session#http_headers: /de/gcc/fachinfo_search/ean/7680588680028? NoMethodError undefined method `gsub!' for #<ODDB::FachinfoDocument2001:0x007f1804395800> /usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/stub.rb:112:in `method_missing' /var/www/oddb.org/src/view/drugs/fachinfo_search.rb:269:in `text' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:68:in `create' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:286:in `compose_component' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:211:in `block in compose'
Fixed this problem. But after pressing the back item the drug Actemra is displayed twice under http://oddb-ci2.dyndns.org/de/gcc/fachinfo_search/ean/7680588680028?
Also when displaying the result for two drugs there is no heading information for each found drug is displayed (URL was http://oddb-ci2.dyndns.org/de/gcc
. See
But after pressing back I got the URL http://oddb-ci2.dyndns.org/de/gcc/fachinfo_search/ean/7680588680028,7680576730049?
and the info displayed correctly.
Fixed these problems. Adding more watir tests for adding/deleting drugs, deleting all drugs and testing all possible chapter names. Running all watir tests reminded me that I had to fix the delete_all for prescription, too.
Cleaning up my local changes to get rid of way too many puts statements. Waiting for watir tests to complete.
Pushed Fix ajax search
Following watir tests have problem:
Pulled changes on thinpower and restarted ch.oddb services.