Mailinglist Archive: yast-devel (246 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] <rest-service> network : fixed test
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Mon, 31 Aug 2009 13:17:13 +0200
  • Message-id: <20090831111713.GB29084@xxxxxxxxxxxxx>
* 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)

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages