Mailinglist Archive: yast-commit (2080 mails)

< Previous Next >
[yast-commit] <web-client> network : Test existence of private routing in modules
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 24 Aug 2009 15:37:53 +0200
  • Message-id: <E1MnBbn-0003RQ-Sg@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit 0577155569c48fc0340267e9561bce561faefde3
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Mon Aug 17 15:16:47 2009 +0200

Test existence of private routing in modules
---
webclient/test/functional/private_routing_test.rb | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/webclient/test/functional/private_routing_test.rb
b/webclient/test/functional/private_routing_test.rb
new file mode 100644
index 0000000..75bac81
--- /dev/null
+++ b/webclient/test/functional/private_routing_test.rb
@@ -0,0 +1,13 @@
+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+
+class PrivateRoutingTest < ActionController::TestCase
+ test "plugin private routing" do
+ searchdir = File.join(File.dirname(__FILE__),"..","..","..","plugins")
+ Dir.foreach(searchdir) { |filename|
+ unless filename[0].chr == "."
+ assert
!File.exist?(File.join(searchdir,filename,"config","routes.rb")), "Plugin
#{filename} contains private routing"
+ end
+ }
+ end
+end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages