Set a white list of issue attributes that can be mass-assigned from controllers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3308 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -641,6 +641,13 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
:value => 'Value for field 2'}
|
||||
end
|
||||
|
||||
def test_post_new_should_ignore_non_safe_attributes
|
||||
@request.session[:user_id] = 2
|
||||
assert_nothing_raised do
|
||||
post :new, :project_id => 1, :issue => { :tracker => "A param can not be a Tracker" }
|
||||
end
|
||||
end
|
||||
|
||||
def test_copy_routing
|
||||
assert_routing(
|
||||
{:method => :get, :path => '/projects/world_domination/issues/567/copy'},
|
||||
|
||||
Reference in New Issue
Block a user