Adds missing format parameter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8992 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
28503d83cb
commit
9964e20a03
|
@ -163,7 +163,7 @@ class RepositoriesControllerTest < ActionController::TestCase
|
||||||
def test_add_related_issue
|
def test_add_related_issue
|
||||||
@request.session[:user_id] = 2
|
@request.session[:user_id] = 2
|
||||||
assert_difference 'Changeset.find(103).issues.size' do
|
assert_difference 'Changeset.find(103).issues.size' do
|
||||||
post :add_related_issue, :id => 1, :rev => 4, :issue_id => 2
|
post :add_related_issue, :id => 1, :rev => 4, :issue_id => 2, :format => 'js'
|
||||||
assert_response :success
|
assert_response :success
|
||||||
end
|
end
|
||||||
assert_select_rjs :replace_html, 'related-issues'
|
assert_select_rjs :replace_html, 'related-issues'
|
||||||
|
@ -173,7 +173,7 @@ class RepositoriesControllerTest < ActionController::TestCase
|
||||||
def test_add_related_issue_with_invalid_issue_id
|
def test_add_related_issue_with_invalid_issue_id
|
||||||
@request.session[:user_id] = 2
|
@request.session[:user_id] = 2
|
||||||
assert_no_difference 'Changeset.find(103).issues.size' do
|
assert_no_difference 'Changeset.find(103).issues.size' do
|
||||||
post :add_related_issue, :id => 1, :rev => 4, :issue_id => 9999
|
post :add_related_issue, :id => 1, :rev => 4, :issue_id => 9999, :format => 'js'
|
||||||
assert_response :success
|
assert_response :success
|
||||||
end
|
end
|
||||||
assert_include 'alert("Issue is invalid")', @response.body
|
assert_include 'alert("Issue is invalid")', @response.body
|
||||||
|
@ -185,7 +185,7 @@ class RepositoriesControllerTest < ActionController::TestCase
|
||||||
|
|
||||||
@request.session[:user_id] = 2
|
@request.session[:user_id] = 2
|
||||||
assert_difference 'Changeset.find(103).issues.size', -1 do
|
assert_difference 'Changeset.find(103).issues.size', -1 do
|
||||||
delete :remove_related_issue, :id => 1, :rev => 4, :issue_id => 2
|
delete :remove_related_issue, :id => 1, :rev => 4, :issue_id => 2, :format => 'js'
|
||||||
assert_response :success
|
assert_response :success
|
||||||
end
|
end
|
||||||
assert_select_rjs :remove, 'related-issue-2'
|
assert_select_rjs :remove, 'related-issue-2'
|
||||||
|
|
Loading…
Reference in New Issue