aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
...
* Mailer tests.José Valim2009-06-251-0/+48
|
* More code refactoring.José Valim2009-06-251-0/+24
|
* Added class collision checks.José Valim2009-06-253-12/+18
|
* Added observer generator.José Valim2009-06-251-0/+34
|
* Make tests pass again after merge.José Valim2009-06-251-0/+4
|
* Tests for metal generator.José Valim2009-06-252-4/+18
|
* Tests for plugin generator.José Valim2009-06-254-8/+58
|
* Change current sstructure.José Valim2009-06-2310-627/+345
|
* Removing template runner old specs.José Valim2009-06-231-216/+0
|
* Add an model_subclass generator.Fabien Jakimowicz2009-05-271-0/+15
| | | | | | | | 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>
* Fixed that template runner gem method to output :lib => false correctly ↵Damian Terentiev2009-03-121-0/+5
| | | | | | [#1940 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added :env option for gem in template runner [#1983 state:resolved]Andrew Vit2009-02-281-0/+11
| | | | | | | | | 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>
* Ensure template_runner can run script/* ruby scripts under Windows. [#1859 ↵unknown2009-02-161-3/+13
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix broken scaffolding tests [#1889 state:committed]Mike Gunderloy2009-02-051-2/+2
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-11/+9
|
* Ensure template runner tests don't depend on hash ordering [#1654 ↵Mike Gunderloy2008-12-281-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Adding test coverage and better logging to Rails::TemplateRunner [#1618 ↵Aaron Quint2008-12-271-0/+190
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add helper test generators [#1199 state:resolved]Eugene Bolshakov2008-11-175-27/+83
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Don't include the path when checking class collisions [#545 state:resolved]Joshua Peek2008-10-131-0/+3
|
* Generate belongs_to association when generating a modelTarmo Tänav2008-08-231-0/+8
|
* Generate belongs_to associations automatically for 'references' types [#640 ↵Tarmo Tänav2008-08-231-0/+8
| | | | state:resolved]
* Stub out timestamped_migrations in generator testsJoshua Peek2008-07-191-1/+2
|
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Added tests to show that 2d372d7 breaks old generator behavior (#545 ↵Joshua Peek2008-07-111-0/+19
| | | | state:resolved)
* Warn and uses singularized ModelName if a plural ModelName is given to ↵Pat George2008-06-271-0/+42
| | | | | | script/generate. Override with --force-plural. [#333 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrails.Pratik Naik2008-05-251-30/+30
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add some test coverage for RailsControllerGenerator.Joshua Peek2008-05-132-10/+44
|
* * Remove default_url_options from mailer generatorCody Fauser2008-04-211-3/+3
| | | | | | * 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>
* Add example for default_url_options[:host] to generated mailers.Mislav Marohnić2008-04-181-1/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Changed mailer generator to not use instance variables.Mislav Marohnić2008-04-181-6/+6
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Cleanup generator tests by extracting repeated code into ↵Mislav Marohnić2008-04-185-358/+225
| | | | | | generator_test_helper. Add test for mailer generator. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Update generator tests. Closes #11487 [thechrisoshow]Jeremy Kemper2008-04-014-131/+136
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-053-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 ↵Jeremy Kemper2007-12-104-32/+32
| | | | | | [Pratik Naik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Model generator tests. Closes #8966 [abhay]Jeremy Kemper2007-10-111-0/+109
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Whitespace fix. Closes #9845.Jeremy Kemper2007-10-111-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missing testDavid Heinemeier Hansson2007-06-231-0/+106
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added --skip-migration option to scaffold and resource generators (closes ↵David Heinemeier Hansson2007-06-232-37/+60
| | | | | | #8656) [Michael Glaesemann] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Get picky about weird Ruby style.Jeremy Kemper2007-06-101-12/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffolded validation errors set the appropriate HTTP status for XML ↵Jeremy Kemper2007-06-101-28/+30
| | | | | | responses. Closes #8622. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated migrations include timestamps by default. Closes #8501.Jeremy Kemper2007-05-291-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffold generator tests. Closes #8443.Jeremy Kemper2007-05-232-0/+344
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Railties: generator tests passingJeremy Kemper2006-08-292-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3023@asus: jeremy | 2005-07-12 23:43:39 -0700Jeremy Kemper2005-07-131-0/+2
| | | | | | | | | | | | | | | | | Remove superfluous inherited override in Dependencies. r3024@asus: jeremy | 2005-07-12 23:54:28 -0700 Make test the default railties rake target. r3025@asus: jeremy | 2005-07-12 23:55:27 -0700 Encapsulate dispatch call in dispatcher test. r3026@asus: jeremy | 2005-07-12 23:56:14 -0700 Expand dispatcher mock to match full method signature for process. r3027@asus: jeremy | 2005-07-12 23:57:24 -0700 Look for app-specific generators in RAILS_ROOT/generators instead of RAILS_ROOT/script/generators. r3028@asus: jeremy | 2005-07-13 00:00:47 -0700 Update changelog. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1819 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a better generator for scaffolding that actually creates the code, so ↵David Heinemeier Hansson2004-12-071-0/+0
it can be edited bit by bit. See "script/generate scaffold" [bitsweat]. Added a whole new approach to generators that used the shared "script/generate" command. Run with no-args to see help [bitsweat]. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@63 5ecf4fe2-1ee6-0310-87b1-e25e094e27de