Permalink
Browse files

Update USAGE docs for generators.

  • Loading branch information...
1 parent a0dc675 commit d31e03f3566471f2ad04dc6dace889fae962f7a8 @rizwanreza rizwanreza committed with wycats Mar 29, 2010
View
2 railties/lib/rails/generators/rails/controller/USAGE
@@ -13,6 +13,6 @@ Example:
Credit card controller with URLs like /credit_card/debit.
Controller: app/controllers/credit_card_controller.rb
- Functional Test: test/functional/credit_card_controller_test.rb
+ Functional Test: test/controllers/credit_card_controller_test.rb
Views: app/views/credit_card/debit.html.erb [...]
Helper: app/helpers/credit_card_helper.rb
View
2 railties/lib/rails/generators/rails/helper/USAGE
@@ -13,5 +13,5 @@ Example:
Credit card helper.
Helper: app/helpers/credit_card_helper.rb
- Test: test/unit/helpers/credit_card_helper_test.rb
+ Test: test/helpers/credit_card_helper_test.rb
View
2 railties/lib/rails/generators/rails/mailer/USAGE
@@ -11,5 +11,5 @@ Example:
creates a Notifications mailer class, views, test, and fixtures:
Mailer: app/mailers/notifications.rb
Views: app/views/notifications/signup.erb [...]
- Test: test/functional/notifications_test.rb
+ Test: test/controllers/notifications_test.rb
Fixtures: test/fixtures/notifications/signup [...]
View
2 railties/lib/rails/generators/rails/model/USAGE
@@ -21,7 +21,7 @@ Examples:
For ActiveRecord and TestUnit it creates:
Model: app/models/account.rb
- Test: test/unit/account_test.rb
+ Test: test/models/account_test.rb
Fixtures: test/fixtures/accounts.yml
Migration: db/migrate/XXX_add_accounts.rb
View
2 railties/lib/rails/generators/rails/observer/USAGE
@@ -9,4 +9,4 @@ Example:
For ActiveRecord and TestUnit it creates:
Observer: app/models/account_observer.rb
- TestUnit: test/unit/account_observer_test.rb
+ TestUnit: test/observers/account_observer_test.rb
View
2 railties/lib/rails/generators/rails/scaffold_controller/USAGE
@@ -15,6 +15,6 @@ Example:
Credit card controller with URLs like /credit_card/debit.
Controller: app/controllers/credit_cards_controller.rb
- Functional Test: test/functional/credit_cards_controller_test.rb
+ Functional Test: test/controllers/credit_cards_controller_test.rb
Views: app/views/credit_cards/index.html.erb [...]
Helper: app/helpers/credit_cards_helper.rb

0 comments on commit d31e03f

Please sign in to comment.