Browse Source

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
tags/0.7.0-RC1
Jean-Philippe Lang 16 years ago
parent
commit
83061e9ca2
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      test/functional/issues_controller_test.rb
  2. 2
    2
      test/integration/issues_test.rb

+ 1
- 1
test/functional/issues_controller_test.rb View File

@@ -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

+ 2
- 2
test/integration/issues_test.rb View File

@@ -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