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:
@@ -1,7 +1,7 @@
|
||||
require "#{File.dirname(__FILE__)}/../test_helper"
|
||||
|
||||
class IssuesTest < ActionController::IntegrationTest
|
||||
fixtures :projects, :users, :trackers, :issue_statuses, :issues, :permissions, :permissions_roles, :enumerations
|
||||
fixtures :projects, :users, :trackers, :issue_statuses, :issues, :enumerations
|
||||
|
||||
# create an issue
|
||||
def test_add_issue
|
||||
@@ -38,7 +38,7 @@ class IssuesTest < ActionController::IntegrationTest
|
||||
def test_issue_attachements
|
||||
log_user('jsmith', 'jsmith')
|
||||
|
||||
post "issues/add_attachment/1", { 'attachments[]' => ActionController::TestUploadedFile.new(Test::Unit::TestCase.fixture_path + '/files/testfile.txt', 'text/plain') }
|
||||
post "issues/add_note/1", { :notes => 'Some notes', 'attachments[]' => ActionController::TestUploadedFile.new(Test::Unit::TestCase.fixture_path + '/files/testfile.txt', 'text/plain') }
|
||||
assert_redirected_to "issues/show/1"
|
||||
|
||||
# make sure attachment was saved
|
||||
|
||||
@@ -31,9 +31,9 @@ class ProjectsTest < ActionController::IntegrationTest
|
||||
assert !Project.find(1).active?
|
||||
|
||||
get "projects/show", :id => 1
|
||||
assert_response :missing
|
||||
assert_response 403
|
||||
get "projects/show", :id => subproject.id
|
||||
assert_response :missing
|
||||
assert_response 403
|
||||
|
||||
post "projects/unarchive", :id => 1
|
||||
assert_redirected_to "admin/projects"
|
||||
|
||||
Reference in New Issue
Block a user