mirror of
https://github.com/redmine/redmine.git
synced 2026-03-11 15:10:51 +01:00
Fix nil method error when no issue params are submitted. #5123
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3796 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -649,6 +649,12 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
:value => 'Value for field 2'}
|
||||
end
|
||||
|
||||
test "POST new with no issue params" do
|
||||
@request.session[:user_id] = 2
|
||||
post :new, :project_id => 1
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_copy_routing
|
||||
assert_routing(
|
||||
{:method => :get, :path => '/projects/world_domination/issues/567/copy'},
|
||||
|
||||
Reference in New Issue
Block a user