ref: refs/heads/dmacvicar_log_viewer
commit 5f3298fcc150552d816c70442bf9624b920983f4
Author: Michal Zugec
Date: Mon Aug 31 13:12:51 2009 +0200
fixed test
---
.../test/functional/routes_controller_test.rb | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/plugins/network/test/functional/routes_controller_test.rb b/plugins/network/test/functional/routes_controller_test.rb
index c330871..68e1366 100644
--- a/plugins/network/test/functional/routes_controller_test.rb
+++ b/plugins/network/test/functional/routes_controller_test.rb
@@ -1,7 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
require 'test/unit'
require 'rubygems'
-require 'hostname'
+require 'route'
require "scr"
require 'mocha'
require File.expand_path( File.join("test","plugin_basic_tests"), RailsParent.parent )
@@ -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
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org