Merged 0.6 branch into trunk.
Permissions management was rewritten. Some permissions can now be specifically defined for non member and anonymous users. This migration: * is irreversible (please, don't forget to *backup* your database before upgrading) * resets role's permissions (go to "Admin -> Roles & Permissions" to set them after upgrading) git-svn-id: http://redmine.rubyforge.org/svn/trunk@674 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -58,7 +58,7 @@ class FeedsControllerTest < Test::Unit::TestCase
|
||||
|
||||
def test_rss_key
|
||||
user = User.find(2)
|
||||
key = user.get_or_create_rss_key.value
|
||||
key = user.rss_key
|
||||
|
||||
get :news, :project_id => 2, :key => key
|
||||
assert_response :success
|
||||
|
||||
@@ -22,7 +22,7 @@ require 'projects_controller'
|
||||
class ProjectsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class ProjectsControllerTest < Test::Unit::TestCase
|
||||
fixtures :projects, :permissions
|
||||
fixtures :projects, :users, :roles
|
||||
|
||||
def setup
|
||||
@controller = ProjectsController.new
|
||||
@@ -50,13 +50,6 @@ class ProjectsControllerTest < Test::Unit::TestCase
|
||||
assert_not_nil assigns(:project)
|
||||
end
|
||||
|
||||
def test_list_members
|
||||
get :list_members, :id => 1
|
||||
assert_response :success
|
||||
assert_template 'list_members'
|
||||
assert_not_nil assigns(:members)
|
||||
end
|
||||
|
||||
def test_list_documents
|
||||
get :list_documents, :id => 1
|
||||
assert_response :success
|
||||
|
||||
@@ -11,6 +11,7 @@ class SearchControllerTest < Test::Unit::TestCase
|
||||
@controller = SearchController.new
|
||||
@request = ActionController::TestRequest.new
|
||||
@response = ActionController::TestResponse.new
|
||||
User.current = nil
|
||||
end
|
||||
|
||||
def test_search_for_projects
|
||||
|
||||
Reference in New Issue
Block a user