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
pull/351/head
Jean-Philippe Lang 17 years ago
parent 451aa6ba4e
commit 83061e9ca2
  1. 2
      test/functional/issues_controller_test.rb
  2. 4
      test/integration/issues_test.rb

@ -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"
follow_redirect!
assert assigns(:issues).include?(issue)
assert_equal issue, assigns(:issue)
# check issue attributes
assert_equal 'jsmith', issue.author.login

Loading…
Cancel
Save