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

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1257 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-03-15 11:27:46 +00:00
parent 451aa6ba4e
commit 83061e9ca2
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ class IssuesControllerTest < Test::Unit::TestCase
:description => 'This is the description', :description => 'This is the description',
:priority_id => 5}, :priority_id => 5},
:custom_fields => {'2' => 'Value for field 2'} :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') issue = Issue.find_by_subject('This is the test_new issue')
assert_not_nil issue assert_not_nil issue

View File

@ -34,9 +34,9 @@ class IssuesTest < ActionController::IntegrationTest
assert_kind_of Issue, issue assert_kind_of Issue, issue
# check redirection # check redirection
assert_redirected_to "projects/ecookbook/issues" assert_redirected_to "issues/show"
follow_redirect! follow_redirect!
assert assigns(:issues).include?(issue) assert_equal issue, assigns(:issue)
# check issue attributes # check issue attributes
assert_equal 'jsmith', issue.author.login assert_equal 'jsmith', issue.author.login