##// END OF EJS Templates
Fix tests broken by r1243 (Redirect to issue page after creating a new issue)....
Jean-Philippe Lang -
r1242:83061e9ca29a
parent child
Show More
@@ -171,7 +171,7 class IssuesControllerTest < Test::Unit::TestCase
171 :description => 'This is the description',
171 :description => 'This is the description',
172 :priority_id => 5},
172 :priority_id => 5},
173 :custom_fields => {'2' => 'Value for field 2'}
173 :custom_fields => {'2' => 'Value for field 2'}
174 assert_redirected_to 'projects/ecookbook/issues'
174 assert_redirected_to 'issues/show'
175
175
176 issue = Issue.find_by_subject('This is the test_new issue')
176 issue = Issue.find_by_subject('This is the test_new issue')
177 assert_not_nil issue
177 assert_not_nil issue
@@ -34,9 +34,9 class IssuesTest < ActionController::IntegrationTest
34 assert_kind_of Issue, issue
34 assert_kind_of Issue, issue
35
35
36 # check redirection
36 # check redirection
37 assert_redirected_to "projects/ecookbook/issues"
37 assert_redirected_to "issues/show"
38 follow_redirect!
38 follow_redirect!
39 assert assigns(:issues).include?(issue)
39 assert_equal issue, assigns(:issue)
40
40
41 # check issue attributes
41 # check issue attributes
42 assert_equal 'jsmith', issue.author.login
42 assert_equal 'jsmith', issue.author.login
General Comments 0
You need to be logged in to leave comments. Login now