ref: refs/heads/dmacvicar_log_viewer commit 0577155569c48fc0340267e9561bce561faefde3 Author: Josef Reidinger <jreidinger@suse.cz> 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@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org