From 8e7e2f09fe1bd1f0edad6cc5905c867df0171f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Wed, 20 Apr 2011 17:47:43 +0200 Subject: [PATCH] Disable requesting user logging. --- init.rb | 2 +- spec/controllers/principal_roles_controller_spec.rb | 1 + spec/plugin_spec_helper.rb | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/init.rb b/init.rb index 8257803b07..5d0e284e4a 100644 --- a/init.rb +++ b/init.rb @@ -20,7 +20,7 @@ Redmine::Plugin.register :redmine_global_roles do name 'Global Roles plugin' author 'Jens Ulferts @ finnlabs' description 'Adds global, meaning non project bound, roles. Create Project becomes a global role.' - version '0.1.3' + version '0.1.4' if RAILS_ENV != "test" require_or_load 'global_roles/permission_patch' diff --git a/spec/controllers/principal_roles_controller_spec.rb b/spec/controllers/principal_roles_controller_spec.rb index ba3a2d2503..5fae8b4125 100644 --- a/spec/controllers/principal_roles_controller_spec.rb +++ b/spec/controllers/principal_roles_controller_spec.rb @@ -17,6 +17,7 @@ describe PrincipalRolesController do @principal_role.stub!(:id).and_return(23) PrincipalRole.stub!(:find).and_return @principal_role disable_flash_sweep + disable_log_requesting_user end describe :post do diff --git a/spec/plugin_spec_helper.rb b/spec/plugin_spec_helper.rb index 324a3eb61c..f44711d360 100644 --- a/spec/plugin_spec_helper.rb +++ b/spec/plugin_spec_helper.rb @@ -84,6 +84,10 @@ module GlobalRoles @controller.instance_eval{flash.stub!(:sweep)} end + def disable_log_requesting_user + @controller.stub!(:log_requesting_user) + end + def response_should_render method, *params unless @page @page ||= mock("page")