public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
renaming should_filter to should_filter_params
dancroak (author)
Wed Sep 24 06:36:12 -0700 2008
commit  c84e84ded644ef7c6e16e0e41938a5b144c71e64
tree    6f1fb08eb9a1ce8ca8e1905d0e69289a4b212b3b
parent  faf0f071c78b765a293252af9140c58144a7cd2c
...
106
107
108
109
110
 
 
111
112
113
...
106
107
108
 
 
109
110
111
112
113
0
@@ -106,8 +106,8 @@ module ThoughtBot # :nodoc:
0
         #
0
         # Example:
0
         #
0
- # should_filter :password, :ssn
0
- def should_filter(*keys)
0
+ # should_filter_params :password, :ssn
0
+ def should_filter_params(*keys)
0
           keys.each do |key|
0
             should "filter #{key}" do
0
               assert @controller.respond_to?(:filter_parameters),
...
14
15
16
17
 
18
19
20
...
14
15
16
 
17
18
19
20
0
@@ -14,7 +14,7 @@ class UsersControllerTest < Test::Unit::TestCase
0
     @user = User.find(:first)
0
   end
0
   
0
- should_filter :ssn
0
+ should_filter_params :ssn
0
 
0
   should_be_restful do |resource|
0
     resource.identifier = :id

Comments

    No one has commented yet.