Skip to content

Commit

Permalink
Use filter_param matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Jun 11, 2010
1 parent 5c118ed commit 62b944b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/controllers/confirmations_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ConfirmationsControllerTest < ActionController::TestCase

tests Clearance::ConfirmationsController

should_filter_params :token
should filter_param(:token)

context "a user whose email has not been confirmed" do
setup { @user = Factory(:user) }
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/sessions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class SessionsControllerTest < ActionController::TestCase
tests Clearance::SessionsController

should_filter_params :password
should filter_param(:password)

context "on GET to /sessions/new" do
setup { get :new }
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/users_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class UsersControllerTest < ActionController::TestCase

tests Clearance::UsersController

should_filter_params :password
should filter_param(:password)

context "when signed out" do
setup { sign_out }
Expand Down

0 comments on commit 62b944b

Please sign in to comment.