Klaus Kaempf wrote / napísal(a): > * Michal Zugec <[email protected]> [Aug 31. 2009 13:13]: > >> @@ -13,8 +13,10 @@ class RoutesControllerTest < Test::Unit::TestCase >> # to extract routes data from all YaPI map >> # >> def test_show >> - Routes.expects(:find).returns({:routes=>{:default=>'10.20.30.40'}}) >> - Routes.find >> + # if this code raises, test-unit 2.0.3 and mocha 0.9.5 fail >> + # with PASSTHROUGH_EXCEPTIONS. version mismatch?! >> + >> Route.expects(:find).returns({:routes=>{:default=>{'via'=>'10.20.30.40'}}}) >> + Route.find > > Can you explain what you're actually trying to test here ? > > Klaus > --- > SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) >
It's described in comment above (which is not visible in that diff) as FIXME -- Best Regards, Michal Zugec Software developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: [email protected] Lihovarska 1060/12 tel: +420 284 028 960 190 00 Praha 9 fax: +420 296 542 374 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
