could not connect to www.swissreg.ch: #<Net::HTTPInternalServerError:0x007f8a7d69bb58>
---
Remaining work for interactions see . Most stuff works but interactions are not displayed as they should. Preliminary patch was Attach:interaction_patch.txt.
Fixed the problem and pushed Make epha-interaction work with ean13s,iksnrs and atc-codes. Problem was that in src/view/interactions/interaction_chooser.rb I did not return a correct div.
Working on a watir-tests. Remarked that
de/gcc/home_interactions/,7680567790045
instead of de/gcc/home_interactions/7680567790045
. Shall I fix it? Answer of Zeno: YES.
M01AG01: Mefenaminsäure => B01AA04: Phenprocoumon Erhöhtes Blutungsrisiko
. Therefore it must appear directly under Ponstan.
For running watir-tests I added the files Gemfile.watir and Gemfile.watir.lock. This allows me to call bundle install --gemfile Gemfile.watir
and rake spec
to run all the watir specs. Gemfile.watir does only contains the specs needed for running the tests and none of the over 40 gems needed to run oddb.org.
Working with the devise: 'First a test must fail' was very useful as when looking at hte problem why I could not add a new drug after deleting all the test failed with
expected "http://oddb-ci2.dyndns.org/de/gcc/interaction_chooser/" to match "/de/gcc/home_interactions/"
Fixed it with commit Fix problem that after delete_all you could not add a new drug
Fixed problem with ',' by pushing Remove ',' after /home_interactions/
Pushed watir-tests with commit Added some watir tests for interactions
As there were suddenly some problem that I could not reach oddb-ci2.dyndns.org via dnydns.org and my nginx setup. Therefore Zeno suggested to add another virtual host. Stopped my nginx setup to assure that it will not interfere with my tests. I downloaded http://dev.ywesee.com/uploads/att/02_oddb_vhost.conf.txt, moved it to /etc/apache2/vhosts.d/00_default_ssl_vhost.conf. There I corrected the servername to oddb-ci2.ngiger.dyndns.org and sbsm version. After /etc/init.d/apache restart
I could easily work with oddb-ci2.ngiger.dyndns.org.
Working without internet connection is slow as e.g. ads are not downloaded and lead to long waiting times (Tested with interconnection cut). Therefore my watir tests failed with timeouts.
I strongly suspect that pry was causing severe ills (eg. network problems) when crashing when going into a breakpoint and displaying some structure (running bin/oddbd). Resorted to some printf and fixed the problems and sorted the interactions by descending severity.
See commit Display interactions after their drug.Sort by severity and Added watir test for correct sorting of interactions
Interactions display now nicely. See .