Mailinglist Archive: yast-devel (163 mails)

< Previous Next >
Re: [yast-devel] Re: [yast-commit] <rest-service> network : fixed test
  • From: Michal Zugec <mzugec@xxxxxxx>
  • Date: Tue, 01 Sep 2009 09:48:20 +0200
  • Message-id: <4A9CD1C4.9060004@xxxxxxx>
Klaus Kaempf wrote / napísal(a):
* Michal Zugec <mzugec@xxxxxxx> [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@xxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages