@@ -284,6 +284,14 class UsersControllerTest < ActionController::TestCase | |||
|
284 | 284 | assert_equal User.find(2), assigns(:user) |
|
285 | 285 | end |
|
286 | 286 | |
|
287 | def test_edit_registered_user | |
|
288 | assert User.find(2).register! | |
|
289 | ||
|
290 | get :edit, :id => 2 | |
|
291 | assert_response :success | |
|
292 | assert_select 'a', :text => 'Activate' | |
|
293 | end | |
|
294 | ||
|
287 | 295 | def test_update |
|
288 | 296 | ActionMailer::Base.deliveries.clear |
|
289 | 297 | put :update, :id => 2, |
General Comments 0
You need to be logged in to leave comments.
Login now