* edit_issue_notes: let user edit any notes * edit_own_issue_notes: let user edit his own notes only git-svn-id: http://redmine.rubyforge.org/svn/trunk@1152 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -48,4 +48,12 @@ class JournalsControllerTest < ActionController::TestCase
|
||||
assert_select_rjs :replace, 'journal-2-notes'
|
||||
assert_equal 'Updated notes', Journal.find(2).notes
|
||||
end
|
||||
|
||||
def test_post_edit_with_empty_notes
|
||||
@request.session[:user_id] = 1
|
||||
xhr :post, :edit, :id => 2, :notes => ''
|
||||
assert_response :success
|
||||
assert_select_rjs :remove, 'change-2'
|
||||
assert_nil Journal.find_by_id(2)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user