Santiago Pastorino
b451de0d6d
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:12:33 -03:00
Santiago Pastorino
b8634dddab
Stub is_a? not instance_of? here
2010-08-03 12:17:53 -03:00
Fred Wu
cdad483dff
Improved how AppGenerator generates the application name. It now detects the current app name whenever possible. This means that renaming the residing directory will not effect the app name generated by AppGenerator.
...
[#5225 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-08-02 16:30:20 +02:00
rohit
c544fcc8eb
Failing test to check for route file corruption if legacy map parameter is used. [ #5263 state:open]
2010-08-02 10:55:05 -03:00
Steve Agalloco
b823e50a54
fix for rails app generator when using --pretend option
...
[#5245 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-07-30 11:55:07 -03:00
José Valim
9789d22137
Update to latest thor.
2010-07-26 11:41:52 +02:00
Xavier Noria
92669b8320
application generation: --skip-testunit and --skip-activerecord renamed to --skip-test-unit and --skip-active-record respectively
...
Reason is their proper spellings are "Test::Unit" and "Active Record".
Option names and descriptions have been revised, as well as some method
names and minor details here and there.
2010-07-25 22:55:38 +02:00
Santiago Pastorino
38f1ea8fe2
Makes test use the new config.action_view.javascript_expansions[:defaults] initialization syntax
2010-07-17 05:53:18 +08:00
Santiago Pastorino
114fa4d431
Adds application.js when app is generated with -J and clear javascript_expansions[:defaults]
2010-07-17 01:59:51 +08:00
Prem Sichanugrist
67ee6c38b9
Remove the --singeleton option from scaffold generator.
...
It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name.
[#4863 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-24 20:17:59 +02:00
Xavier Noria
6f83a5036d
renames load_(once_)paths to autoload_(once_)paths in dependencies and config
2010-06-24 00:17:28 +02:00
Mohammed Siddick.E
7008911222
Patch for Namespace problem in Scaffold. [ #4763 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-23 09:30:55 +02:00
rohit
d061050638
Add test for migration generator with name not starting with add or remove. [ #4835 state:committed]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 12:32:56 +02:00
Andrew White
ed3f042e99
Make polymorphic_url and scaffolding work with uncountable resources [ #3930 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:15:41 +02:00
José Valim
a12079df9f
Tidy up generators based on latest change on AM.
2010-06-13 13:56:08 +02:00
Damien Mathieu
b5ce2490c1
Test create mailers folder when starting a new app
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-12 09:54:18 +02:00
Santiago Pastorino
7cb49f551c
layout 'application' is not anymore on application_controller
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-10 20:52:55 +02:00
Jeff Kreeftmeijer
d93b45e8d3
Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [ #4631 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-10 20:04:49 +02:00
José Valim
9d33c2ab6f
Fix generator test broken when rails new was added.
2010-06-08 16:05:19 +02:00
José Valim
44cb6dce62
Still copy application configuration to generator even if they are required earlier. Also tidy up the guide a little bit.
2010-06-03 23:32:12 +10:00
José Valim
2740943634
Remove the laziness from the middleware stack.
2010-06-03 23:32:10 +10:00
wycats
ed34652d1a
Removing Metal from Rails 3.
...
If you have existing Metals, you have a few options:
* if your metal behaves like a middleware, add it to the
middleware stack via config.middleware.use. You can use
methods on the middleware stack to control exactly where
it should go
* if it behaves like a Rack endpoint, you can link to it
in the router. This will result in more optimal routing
time, and allows you to remove code in your endpoint
that matches specific URLs in favor of the more powerful
handling in the router itself.
For the future, you can use ActionController::Metal to get
a very fast controller with the ability to opt-in to specific
controller features without paying the penalty of the full
controller stack.
Since Rails 3 is closer to Rack, the Metal abstraction is
no longer needed.
2010-06-03 23:32:10 +10:00
Simon Jefford
7be58b6163
Tests for new reserved words [ #4602 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-16 19:15:24 +02:00
José Valim
1a2d556de7
Rename assert_attribute_type to asser_field_type.
2010-05-16 12:07:44 +02:00
Jeff Kreeftmeijer
5ff6de0982
Added assert_attribute_type to clean up GeneratedAttributeTest [ #2377 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-16 12:07:22 +02:00
Adrian Sanchez
bcf5fea5e5
Bundler deprecated options in Gemfile with application template using method "gem" [ #4534 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-15 09:43:20 +02:00
Carl Lerche
6d7f2790cd
Expand paths to app builders relative to the working directory
2010-05-06 12:02:54 +03:00
Carlhuda
785493ffed
Provide a mechanism for overriding the entire generator via a class that handles the individual elements of generating a new Rails application
2010-04-30 13:48:06 -07:00
Carlhuda
0761d1b0f7
Set up app generator class to make it easier to for alt-stacks to override targeted areas
2010-04-30 13:48:06 -07:00
José Valim
cde168edbb
Update generators to use thor 0.13.6 with simpler source_root handling.
2010-04-30 12:42:12 +02:00
José Valim
7b98d2aa59
Reorganize the mailer generator a bit.
2010-04-30 12:11:38 +02:00
Carlhuda
c54c84b7b4
Move ActionMailer generator to AM
2010-04-29 16:45:57 -07:00
José Valim
b0a53c86ef
Update thor dependency to 0.13.5
2010-04-29 23:25:40 +02:00
Ravinder Singh
e9a9ef094e
warn user if options are given before application name [ #3435 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-29 13:00:17 +02:00
Phil Smith
64373937a3
Make the migration generator handle pre-existing migrations with the same timestamp.
...
In the event a migration already exists with that number, the new migration's timestamp will be incremented by 1.
[#4412 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2010-04-19 14:48:31 +12:00
Andrew White
788d923893
Generate module file for namespaced models [ #4230 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-12 10:57:27 +02:00
Jeremy Kemper
ec8e747960
Partially revert "A new application now comes with a layout and a stylesheet."
...
This reverts commit ea2c5fa8046e2f953b366adc94f0610ccfea0828.
Conflicts:
railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb
railties/test/generators/app_generator_test.rb
2010-04-09 10:04:20 -07:00
Jeremy Kemper
c44cacb070
Include app name in layout title
2010-04-09 09:49:46 -07:00
José Valim
ea2c5fa804
A new application now comes with a layout and a stylesheet.
2010-04-06 00:18:35 +02:00
José Valim
b61f6f5980
Load generators from both lib/rails/generators and lib/generators. Using the former since it's less obstrusive.
2010-03-23 13:40:41 +01:00
José Valim
e8a80cdded
Controller generators should use routes shortcut.
2010-03-22 21:07:37 +01:00
José Valim
fb89aba8b4
Killing fixtures in mailer before they kill me (they usually lead to very brittle tests).
2010-03-22 21:07:37 +01:00
Jeremy Kemper
4884f28c80
Also revert mailer generator test changes in 8b50f89
2010-03-21 16:18:32 -07:00
Jeremy Kemper
49416550fe
Fix regression introduced in 8b50f89. Generated views mentioned the wrong path.
2010-03-21 16:07:21 -07:00
José Valim
8b50f89ba7
Make ERB generators more flexible and customizable.
2010-03-21 19:30:42 +01:00
José Valim
562154fcbc
Controller generator now creates routes as well [ #4233 state:resolved]
2010-03-19 18:12:54 +01:00
Sebastian Martinez
b395c81e3c
removed useless require line
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-19 11:08:06 +01:00
José Valim
7a5da21481
Use human_name in scaffold.
2010-03-17 00:09:43 +01:00
Caio Chassot
94a60a5600
In app_generator, fix hardcoded bundle
call to derive the bundle executable name from Thor::Util.ruby_command.
...
This ensures that eg. when `rails` is called from `ruby1.9`, `bundle1.9` is called.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
Kieran Pilkington
9268b598bb
Add a check to ensure that the application name does not already exist, i.e. String or Module are part of ruby [ #3872 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
Ramon Soares
79c47abe6c
the folder public/javascripts should be created by default [ #4027 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-26 10:54:44 +01:00
José Valim
d0454e5766
Add readme as method in Rails::Generators::Actions (as we had in 2.3)
2010-02-17 18:43:40 +01:00
Kyle Maxwell
d4e008fd0f
Invalid namespace on app generation raises an error
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-17 00:38:30 +01:00
José Valim
97650bf54a
Fix a couple failing tests.
2010-02-10 08:33:41 +01:00
Michael Bleigh
9c654744fb
Fixes unescaped version passthrough of generator 'gem' command. [ #3901 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:28:03 +01:00
Mikel Lindsaar
7d76474e5d
Debrittlize tests somewhat - fix for CI build
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 07:26:01 +01:00
RomD
f44a0b1d52
fix usage examples and more to use new invocations
...
Signed-off-by: Carl Lerche <carllerche@mac.com>
2010-02-06 09:51:53 -08:00
José Valim
6958eac1a0
Add config.generators.templates to provide alternative paths for template lookup.
2010-02-06 17:32:06 +01:00
Yehuda Katz
b392c81869
Fixes test fail
2010-02-05 21:30:26 -08:00
Jeremy Kemper
5c07c33ab4
Move framework requires and Bundler.require from boot.rb to app.rb. Cut down the list of railtie choices to those that make sense.
2010-02-04 10:08:06 -08:00
José Valim
79376e3c9d
Update Gemfile to use latest bundler config.
2010-02-04 13:53:37 +01:00
Mikel Lindsaar
80e49354f1
Updating index.html to remove script/generate and making railties tests pass again
2010-02-02 21:13:01 -08:00
Mikel Lindsaar
485f12fe4c
Fixed --dev flag for new bundler
2010-02-02 11:24:19 +11:00
Joshua Peek
e0d4e5f345
Revert "Drop JS scripts from core"
...
This reverts commit a06c47a52b90a5d812e64309488ad5926dc583ca.
2010-01-30 14:39:59 -06:00
Joshua Peek
a06c47a52b
Drop JS scripts from core
2010-01-29 20:27:23 -06:00
José Valim
17ea8d8d4d
Automatically configure generators if application is defined.
2010-01-29 17:51:06 +01:00
Carl Lerche
6268fcdc30
Fix the test_framework generator tests
2010-01-28 10:03:47 -08:00
Jeremy Kemper
452bb1e48d
Rename 'defaults' class method to 'default' to reflect that it's a declaration
2010-01-27 19:38:17 -08:00
Jeremy Kemper
079714277d
Attend to brittle mailer generator tests
2010-01-27 19:33:26 -08:00
José Valim and Mikel Lindsaar
8fabcb2eca
Update generators to use new defaults.
2010-01-26 11:48:25 +01:00
Mikel Lindsaar
b8c82edc1f
Updating generators for mailer to reflect changes in API
2010-01-26 18:59:52 +11:00
José Valim and Mikel Lindsaar
1b3cb54eba
More work on generated mailer templates.
2010-01-26 01:09:08 +01:00
José Valim and Mikel Lindsaar
9cb3ca1d29
Change mailer generator templates and refactor the whole naming schema.
2010-01-25 13:20:32 +01:00
José Valim
5b26fa4875
Make plugin generator compatible with new schema.
2010-01-24 09:42:28 +01:00
Joshua Peek
c2e57c0bb0
I removed the rdoc task from plugin Rakefile
2010-01-22 13:56:10 -06:00
José Valim
c7255386cd
script/generate mailer Notifier
will now create a mailer at app/mailers.
2010-01-19 01:36:06 +01:00
José Valim
a18dd52d58
Get generators tests running on Ruby 1.9.1
2010-01-19 01:36:06 +01:00
José Valim
9fffdc5cdb
Generators load path now will be Ruby load path. If you want to use rspec:install generator, you need generators/rspec/install_generator in your load path.
2010-01-18 16:21:11 +01:00
José Valim
e75ea47434
Automatically remove :generators: from namespaces.
2010-01-18 16:21:10 +01:00
José Valim
a2e2e73c5e
Ensure generators can be invoked by their shortcut and remove attr_reader tasks.
2010-01-18 16:21:10 +01:00
José Valim
58136e1bd3
Plugin generator should use templates.
2010-01-17 15:17:50 +01:00
Rizwan Reza
e3898bda9c
Take --skip-activerecord into account boot.rb requires. [ #3711 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-17 14:55:11 +01:00
José Valim
5252f5c1c9
Bundle automatically if --dev or --edge is given as option.
2010-01-15 13:39:56 +01:00
José Valim
1a275730b2
Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER.
2010-01-13 01:19:22 +01:00
José Valim
ccc9f0b7de
Ensure application names are not singularized.
2010-01-07 21:09:32 +01:00
José Valim
19e7c524d2
Ensure config/application.rb also uses app_const instead of app_name.classify.
2010-01-07 20:59:26 +01:00
Jeffrey Hardy
cfe0fcae06
Fix failing app generator test when using the --dev option
2010-01-06 14:22:51 -05:00
José Valim
b0947bf97c
Bring generators tests back to life.
2010-01-04 00:31:53 +01:00
José Valim
271e7c803f
Move all generators tests to use new test case syntax.
2010-01-03 17:14:50 +01:00
José Valim
441227a10f
Create Rails::Generators::TestCase.
2010-01-03 17:14:49 +01:00
José Valim
e88ea3255f
Assert for valid application names. [ #3556 status:resolved]
2010-01-03 17:14:49 +01:00
Carl Lerche
1e41097294
Fully remove config.frameworks in favor of requires in boot.rb
2009-12-31 11:57:59 -08:00
José Valim
1a4d909c68
Add rails app --edge and rails app --dev
2009-12-29 23:58:34 +01:00
Joshua Peek
0fec53f243
Scaffolding generates new routing dsl examples
2009-12-09 18:57:16 -06:00
José Valim
d627c932bd
Pass config.generators options along when RAILS_GENERATORS is set and show --force-plural message just once.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 18:22:05 -08:00
José Valim
3b8e29fe56
Remove --freeze (since Rails will come bundled in all new apps) and update gem action to change Gemfile instead of config.environment.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 16:32:47 -08:00
José Valim
d226f17507
Ensure that generators can be invoked from any directory.
...
Signed-off-by: Engine Yard <engineyard@Engine-Yards-MacBook-Pro.local>
2009-11-02 18:20:16 -08:00
Yehuda Katz
14370e1aab
CI breakage
...
This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1.
2009-11-02 17:12:01 -08:00
José Valim
a288b74f1c
Generators should use Rails.root instead of Dir.pwd [ #3408 status:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-10-28 16:54:38 -04:00
Jeremy Kemper
acb1624f27
Merge commit 'josevalim/fixes'
...
Conflicts:
railties/test/generators/app_generator_test.rb
2009-10-19 18:37:19 -07:00
Joshua Peek
01e04a446c
Use Rails.root in railties tests
2009-10-18 10:53:43 -05:00
Joshua Peek
f74e04c21d
RAILS_GEM_VERSION is obsolete
2009-10-18 10:44:05 -05:00
José Valim
1f9d234a6b
By default use ActiveModel API in controller generators, unless otherwise specified [ #3123 status:resolved]
2009-10-17 15:56:44 -03:00
José Valim
03c5a0e5c4
Make app generatoor specs green once again.
2009-10-17 15:54:58 -03:00
Carl Lerche
2110a524a4
Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the application's object root)
2009-10-16 12:51:02 -07:00
Carl Lerche
97296b11e2
Have config/application.rb contain the application definition and require that file instead of config/boot.rb or config/environment.rb in script/*.
2009-10-15 14:54:12 -07:00
Carl Lerche
ff8be66f24
Finish porting over the initializers to the app object and fix all the tests
2009-10-14 11:47:37 -07:00
Joshua Peek
570f055c44
Yank FCGI Handler from core
...
http://github.com/rails/fcgi_handler
2009-10-05 11:16:24 -05:00
Joshua Peek
c83c0f6936
Remove config.ru generation from --with-dispatchers option
2009-09-25 23:15:49 -05:00
Yehuda Katz + Carl Lerche
f0dd77c6be
Move railties/lib/* into railties/lib/*
2009-09-24 16:11:41 -07:00
Jeremy Kemper
d58ee23008
Require rubygems in generators test so Action Dispatch can find rack
2009-09-14 13:04:43 -07:00
Jeremy Kemper
697dda5f29
Fix deprecated gem-name requires
2009-09-14 13:04:43 -07:00
José Valim
d8d83e7821
Change div.attribute to div.field and add some _form to tests.
2009-08-30 18:49:54 +02:00
José Valim
5f7cfffc53
Use less strict rules in generators lookup, so people can lay their generators wherever they want.
2009-08-10 18:29:20 +02:00
Hugo Peixoto
22b38c18c6
Fixed generating a namespaced model with table pluralization turned off. Add tests for namespaced model generation.
...
[#767 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-08-09 02:38:35 -07:00
Matt Duncan
bee3e099bd
Users can now pass :branch for git plugins and :revision for subversion plugins
...
[#2352 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2009-08-08 23:42:18 +01:00
José Valim
3ea091e1cc
Improved coverage for session_migration generator. [ #3008 status:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-08 23:42:18 +01:00
Elad Meidar
c0f828ca4f
Fixed reference to AR::SessionStore::Session.table_name in session migrations
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2009-08-08 23:42:18 +01:00
José Valim
469d89dd44
Rename Rails::Generators::ActionORM to Rails::Generators::ActiveModel.
2009-08-08 17:48:07 +02:00
José Valim
55575e2165
Allow rails templates relative to the current path to be given.
2009-08-07 17:17:51 +02:00
José Valim
edd07b5a7a
Updated vendored thor to 0.11.3.
2009-07-23 14:30:49 +02:00
José Valim
d6a590a710
Modified rake tasks to use new app generator structure and updated Thor version.
2009-07-16 11:17:19 +02:00
José Valim
b4ef958de6
Change false to :verbose => false as in new Thor version.
2009-07-15 20:16:37 +02:00
José Valim
0702e04e0d
Refactored some generators to make use of improved invocations on thor.
2009-07-15 11:33:36 +02:00
José Valim
a06c825b46
Updated vendored Thor to 0.11.1 and update Rails::Generators.
2009-07-14 22:20:43 +02:00
José Valim
52673cd2ee
Added a generator generator.
2009-07-13 23:01:12 +02:00
José Valim
a5ab030ae4
Ensure non timestamped migrations are generated properly.
2009-07-13 22:26:58 +02:00
José Valim
09c288f0c5
Add the new generators environment and update commands.
2009-07-08 12:55:50 +02:00
José Valim
66d1b968d1
Make specs pass on Ruby 1.9.
2009-07-06 18:31:28 +02:00
José Valim
b277cf28e8
Allow scaffold controller to load action_orm files on demand.
2009-07-04 20:17:32 +02:00
José Valim
35925a8995
Ensure that rails templates methods are invoked with the proper extensions [ #2531 status:resolved]
2009-07-04 20:17:32 +02:00
José Valim
8ff214e0db
Use the proper shebang when using Ruby 1.9 or jruby or windows.
2009-07-04 20:17:32 +02:00
José Valim
da09d46ed4
Make generators test pass with latest Thor version
2009-07-04 20:17:32 +02:00
José Valim
21db04818e
More tests for rails generators and lookup.
2009-07-03 14:57:46 +02:00
José Valim
3ca504c966
Removed remaining old generators files.
2009-07-03 14:57:46 +02:00
José Valim
de68cf7e06
Plugin generators now reflect new generators sutrcture.
2009-07-03 14:57:46 +02:00
José Valim
d1c404ee90
Added lookup to generators.
2009-07-03 14:57:46 +02:00
José Valim
528d555e37
Make invoke output white and use padding.
2009-07-02 15:55:21 +02:00
José Valim
ea0b0c820d
rm -rf rails_generator/generators
2009-07-02 10:27:40 +02:00
José Valim
c972b25df5
Tests for scaffold generator.
2009-07-02 10:27:40 +02:00
José Valim
a7c1591315
Added stylesheets controller which is invoked by scaffold.
2009-07-02 10:27:40 +02:00
José Valim
1a4d8aca8a
Added tests to scaffold controller.
2009-07-02 10:27:40 +02:00
José Valim
555a956a66
Ensure both migration and routes are removed on revoke.
2009-07-02 10:27:39 +02:00
José Valim
dec1ee7422
Started with scaffold controller and added remove_hook_for.
2009-07-02 10:27:39 +02:00
José Valim
95ef9bd67f
Simplifying resource generator.
2009-06-29 19:56:22 +02:00
José Valim
ff4c600448
Added singleton support to resource controller.
2009-06-28 19:57:00 +02:00
José Valim
9413dba432
Added tessts for resources generator.
2009-06-28 19:46:34 +02:00
José Valim
1ca51df000
Added migration and session_migration generator.
2009-06-28 13:16:14 +02:00
José Valim
4f3e44fa03
Move file action only to app generator.
2009-06-28 12:00:13 +02:00
José Valim
496dde95fb
Added migrations and make base generators be lazy loaded.
2009-06-28 11:56:44 +02:00
José Valim
c03585aa8d
Show invoked generators options on meta generators.
2009-06-27 21:30:00 +02:00
José Valim
fdeee65c96
Add model_subclass generator with deprecation warning.
2009-06-27 21:30:00 +02:00
José Valim
7b6c5ed7db
Added parent option to model generator.
2009-06-27 21:30:00 +02:00
José Valim
acaeaf308a
Add a fixture replacement hook to TestUnit model generator.
2009-06-27 21:29:59 +02:00
José Valim
8c5622f0d4
Initial scratch of model generators.
2009-06-27 21:29:59 +02:00
José Valim
ff48e23a4e
Make Observer generator agnostic.
2009-06-27 21:29:59 +02:00
José Valim
e375819b76
Spec --no and --skip.
2009-06-26 20:42:00 +02:00
José Valim
e2346244a2
Added Controller Generators.
2009-06-26 11:59:14 +02:00
José Valim
2f3681dfc2
Clean up class collisions check and a class method helper.
2009-06-26 11:59:14 +02:00
José Valim
6bd101188e
Class collision checks.
2009-06-26 11:59:14 +02:00
José Valim
e084313640
Added HelperGenerator.
2009-06-26 11:59:13 +02:00
José Valim
da1baeab4a
Added integration and performance test generators.
2009-06-26 11:59:13 +02:00
José Valim
aee63a12f2
More tests for mailer.
2009-06-25 16:27:44 +02:00
José Valim
534f7b54e3
Mailer tests.
2009-06-25 16:21:33 +02:00
José Valim
0bb95968db
More code refactoring.
2009-06-25 15:45:15 +02:00
José Valim
ed33c29a4e
Added class collision checks.
2009-06-25 11:56:18 +02:00
José Valim
4573fd2e06
Added observer generator.
2009-06-25 11:24:35 +02:00
José Valim
eaef1ee09c
Make tests pass again after merge.
2009-06-25 10:44:46 +02:00
José Valim
5337766fa0
Tests for metal generator.
2009-06-25 10:39:44 +02:00
José Valim
f596495556
Tests for plugin generator.
2009-06-25 10:39:44 +02:00
José Valim
4494a752c3
Change current sstructure.
2009-06-23 19:10:42 +02:00
José Valim
d4ec091580
Removing template runner old specs.
2009-06-23 16:58:43 +02:00
Fabien Jakimowicz
2cb60abfec
Add an model_subclass generator.
...
This generator creates a new model as a subclass of an existing model and the unit test for that model. Lets users avoid having to manually delete the fixtures and migration or remember to pass those arguments.
[#2702 state:committed]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2009-05-27 13:14:04 +02:00
Damian Terentiev
8a17fd1a65
Fixed that template runner gem method to output :lib => false correctly [ #1940 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-12 14:45:55 +00:00
Andrew Vit
16b3d2b621
Added :env option for gem in template runner [ #1983 state:resolved]
...
For installing gems that are only needed in the test environment, specify the :env option so the dependency is written to config/environments/test.rb:
gem 'rspec', :env => 'test'
gem 'quietbacktrace', :env => %w[development test]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-02-28 17:59:01 +00:00
unknown
2414fdb244
Ensure template_runner can run script/* ruby scripts under Windows. [ #1859 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-02-16 20:22:02 +01:00
Mike Gunderloy
4866ce45d0
Fix broken scaffolding tests [ #1889 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2009-02-05 21:07:51 +01:00
Jeremy Kemper
278186534c
Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.
2009-02-03 18:40:22 -08:00
Mike Gunderloy
1fb275541a
Ensure template runner tests don't depend on hash ordering [ #1654 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-28 17:49:58 +00:00
Aaron Quint
9fd35fc2d8
Adding test coverage and better logging to Rails::TemplateRunner [ #1618 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-27 21:03:44 +00:00
Eugene Bolshakov
3c9beb3dab
Add helper test generators [ #1199 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-11-17 21:56:39 -06:00
Joshua Peek
9ab83b1cd1
Don't include the path when checking class collisions [ #545 state:resolved]
2008-10-13 21:43:58 -05:00
Tarmo Tänav
b1f3c6e6ec
Generate belongs_to association when generating a model
2008-08-23 21:54:43 +03:00
Tarmo Tänav
9223a91911
Generate belongs_to associations automatically for 'references' types [ #640 state:resolved]
2008-08-23 20:58:44 +03:00
Joshua Peek
576cae0043
Stub out timestamped_migrations in generator tests
2008-07-19 11:34:32 -05:00
Pratik Naik
0432d15164
Merge with docrails.
2008-07-16 13:01:23 +01:00
Joshua Peek
c00baf496e
Added tests to show that 2d372d7 breaks old generator behavior ( #545 state:resolved)
2008-07-11 12:09:25 -05:00
Pat George
4ddca325ee
Warn and uses singularized ModelName if a plural ModelName is given to script/generate. Override with --force-plural. [ #333 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-27 16:35:26 +01:00
Pratik Naik
98dc582742
Merge docrails.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-25 12:29:00 +01:00
Joshua Peek
4562a5b57f
Add some test coverage for RailsControllerGenerator.
2008-05-13 15:50:06 -05:00
Cody Fauser
4809dcc1b5
* Remove default_url_options from mailer generator
...
* Improve mailer documentation regarding generating URLs
* Add no_match to mailer generator to warn contributors about default_url_options
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-21 14:31:54 -05:00
Mislav Marohnić
69a5c1df82
Add example for default_url_options[:host] to generated mailers.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:19:28 -05:00
Mislav Marohnić
36eecda8d0
Changed mailer generator to not use instance variables.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:13:15 -05:00
Mislav Marohnić
dfdb9f738e
Cleanup generator tests by extracting repeated code into generator_test_helper. Add test for mailer generator.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:10:58 -05:00
Jeremy Kemper
2681d55e40
Update generator tests. Closes #11487 [thechrisoshow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 00:29:24 +00:00
Jeremy Kemper
fe66397adf
require abstract_unit directly since test is in load path
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:33:12 +00:00
Jeremy Kemper
b1ce7e4d4a
Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 [Pratik Naik]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-10 05:54:46 +00:00
David Heinemeier Hansson
2af36bbbd4
Fix typos ( closes #10378 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-05 18:54:41 +00:00
Jeremy Kemper
493a2db447
Model generator tests. Closes #8966 [abhay]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-11 23:12:28 +00:00
Jeremy Kemper
ac102b1054
Whitespace fix. Closes #9845 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-11 22:42:26 +00:00