public
Description: A Rails plugin to create tests for you when your app throws an unhandled exception
Homepage: http://www.culann.com/2008/03/and-the-greatest-of-these-is-laziness
Clone URL: git://github.com/bscofield/laziness.git
use controller instead of controller name
jaggederest (author)
Thu Jun 19 14:10:56 -0700 2008
commit  605732e5aa0d663b42725147d59d6384e3b9b8af
tree    398ed9368a01cfe21d65c01b0c72f06ff4c2667d
parent  a462b78209142604f9bbd718e7abd72f8c49c898
...
3
4
5
6
 
7
8
9
...
12
13
14
15
 
16
17
18
...
3
4
5
 
6
7
8
9
...
12
13
14
 
15
16
17
18
0
@@ -3,7 +3,7 @@ module ActionController
0
     def test
0
       return "
0
 def test_#{@controller}_should_have_the_action_#{@action}
0
- assert #{@controller}.action_methods.include?('#{@action}')
0
+ assert @controller.action_methods.include?('#{@action}')
0
 end
0
 "
0
     end
0
@@ -12,7 +12,7 @@ end
0
       return "
0
 describe #{@controller} do
0
   it \"should have the action #{@action}\" do
0
- #{@controller}.action_methods.should include('#{@action}')
0
+ @controller.action_methods.should include('#{@action}')
0
   end
0
 end
0
 "

Comments

    No one has commented yet.