@ -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'
@ -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
@ -84,6 +84,10 @@ module GlobalRoles
@controller.instance_eval{flash.stub!(:sweep)}
def disable_log_requesting_user
@controller.stub!(:log_requesting_user)
def response_should_render method, *params
unless @page
@page ||= mock("page")