Fixed "First argument in form cannot contain nil or be empty" error (#18275).

git-svn-id: http://svn.redmine.org/redmine/trunk@13661 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-11-28 07:59:54 +00:00
parent 552926772a
commit 86d8acb344
2 changed files with 15 additions and 3 deletions

View File

@@ -166,6 +166,18 @@ class RepositoriesControllerTest < ActionController::TestCase
assert_equal "1", assigns(:changeset).revision
end
def test_revision_should_show_add_related_issue_form
Role.find(1).add_permission! :manage_related_issues
@request.session[:user_id] = 2
get :revision, :id => 1, :rev => 1
assert_response :success
assert_select 'form[action=?]', '/projects/ecookbook/repository/revisions/1/issues' do
assert_select 'input[name=?]', 'issue_id'
end
end
def test_revision_should_not_change_the_project_menu_link
get :revision, :id => 1, :rev => 1
assert_response :success