Commit 83061e9c authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fix tests broken by r1243 (Redirect to issue page after creating a new issue).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 451aa6ba
......@@ -171,7 +171,7 @@ class IssuesControllerTest < Test::Unit::TestCase
:description => 'This is the description',
:priority_id => 5},
:custom_fields => {'2' => 'Value for field 2'}
assert_redirected_to 'projects/ecookbook/issues'
assert_redirected_to 'issues/show'
issue = Issue.find_by_subject('This is the test_new issue')
assert_not_nil issue
......@@ -34,9 +34,9 @@ class IssuesTest < ActionController::IntegrationTest
assert_kind_of Issue, issue
# check redirection
assert_redirected_to "projects/ecookbook/issues"
assert_redirected_to "issues/show"
assert assigns(:issues).include?(issue)
assert_equal issue, assigns(:issue)
# check issue attributes
assert_equal 'jsmith',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment