[yast-devel] Re: [yast-commit] <rest-service> network : fixed test
* Michal Zugec <mzugec@suse.cz> [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) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Klaus Kaempf wrote / napísal(a):
* Michal Zugec <mzugec@suse.cz> [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: mzugec@suse.cz 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: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (2)
-
Klaus Kaempf
-
Michal Zugec