Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 206
- Log:
Initial import of Gullery, an open source photo gallery:
http://nubyonrails.com/pages/gullery
- Author:
- rool
- Date:
- Sun May 20 19:05:59 +0100 2007
- Size:
- 850 Bytes
1 | = Helper Test Generator |
2 | |
3 | Makes stubs so you can test helpers. |
4 | |
5 | The helpers are placed in test/unit/helpers and will be run automatically when you run unit tests. |
6 | |
7 | = Usage |
8 | |
9 | Run the helper_test generator with the shortened name of the helper you want to test. |
10 | |
11 | # For TaskHelper |
12 | ./script/generate helper_test Task |
13 | |
14 | Require the parent testcase class in your test_helper.rb |
15 | |
16 | require File.expand_path(File.dirname(__FILE__) + '/helper_testcase') |
17 | |
18 | The testcase includes common helpers, but you can add others if necessary. |
19 | |
20 | = Examples |
21 | |
22 | # Make a test for the BlogHelper |
23 | ./script/generate helper_test Blog |
24 | |
25 | # Make a test for Admin::UsersHelper |
26 | ./script/generate helper_test Admin::Users |
27 | |
28 | Sub-folders will be made, if necessary. |
29 | |
30 | = Authors |
31 | |
32 | * Test stub by Ryan Davis http://zenspider.com |
33 | * Generator by Geoffrey Grosenbach http://nubyonrails.com |