fix some trace tests, due to a change of the way that your own ones are rendered.
This commit is contained in:
parent
e53b34b80a
commit
5cbaa2fca7
2 changed files with 36 additions and 36 deletions
|
@ -20,9 +20,7 @@ class TraceControllerTest < ActionController::TestCase
|
|||
|
||||
# Now try when logged in
|
||||
get :mine, {}, {:user => users(:public_user).id}
|
||||
assert_response :success
|
||||
assert_template 'mine'
|
||||
# Should really test to see which files are shown to the user
|
||||
assert_redirected_to :controller => 'trace', :action => 'list', :display_name => users(:public_user).display_name
|
||||
end
|
||||
|
||||
# Check that the rss loads
|
||||
|
|
|
@ -120,9 +120,11 @@ class UserCreationTest < ActionController::IntegrationTest
|
|||
assert_template 'user/confirm'
|
||||
|
||||
post 'user/confirm', { :confirm_string => confirm_string, :confirm_action => 'submit' }
|
||||
assert_response :redirect
|
||||
assert_response :redirect # to trace/mine in original referrer
|
||||
follow_redirect!
|
||||
assert_response :redirect # but it not redirects to /user/<display_name>/traces
|
||||
follow_redirect!
|
||||
assert_response :success
|
||||
assert_template "trace/mine"
|
||||
assert_template "trace/list.html.erb"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue