aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
* backport #8616, quote column names in generated fixture filesYves Senn2012-12-261-2/+19
| | | | | | | | | Conflicts: railties/CHANGELOG.md railties/lib/rails/generators/test_unit/model/model_generator.rb railties/lib/rails/generators/test_unit/model/templates/fixtures.yml railties/test/generators/model_generator_test.rb
* backport #8139, `plugin new` adds dummy app tasks when necessary. …Yves Senn2012-11-151-0/+6
| | | | | | | | | | | The `plugin new` generator always adds the dummy app rake tasks, when a dummy app was created. Closes #8224 Conflicts: railties/CHANGELOG.md
* Merge pull request #6450 from iHiD/resource_generator_routes_masterRafael Mendonça França2012-10-012-3/+75
| | | | | | | | Master branch: Fixed generated whitespace in routes when using namespaced resource. Merge pull request #7811 from iHiD/resource_generator_routes_master Fix the build (Broken scaffold routes test)
* We need to have 1-0-stable for joureny gem in edgeArun Agrawal2012-08-241-1/+2
| | | | | Problem : Edge rails can't bundle Fixes #7437
* Don't add sqlite3 to gemspec with -O on rails plugin newPiotr Sarnacki2012-06-081-0/+8
| | | | (closes #6672)
* Merge pull request #6678 from arunagw/fix_issue_6673Rafael Mendonça França2012-06-081-0/+8
|\ | | | | Fix issue 6673
| * We should not include engine.rake file into rakeArun Agrawal2012-06-081-0/+8
| | | | | | | | | | | | | | | | | | | | if we are passing -T which is skip_test_unit See issue #6673 for more details. I saw that we are not creating dummy app even if we do skip_test_unit. Fixes #6673
* | Removed protected as we already doing it above. Arun Agrawal2012-06-081-2/+0
|/
* Changed symbol platform to platforms for the commented out call to gem ↵Martin O'Connor2012-05-301-1/+1
| | | | | | | 'therubyracer'. Dependency.rb expects the symbol to be named :platforms as opposed to platform. RubyMine's inspections indicate that the symbol should be named :platforms. Updating tests.
* Use require_dependency in generated controllersPiotr Sarnacki2012-05-221-2/+2
| | | | | | | Using require in development mode will prevent required files from reloading, even if they're changed. In order to keep namespaced application_controller reloadable, we need to use require_dependency instead of require.
* Fix generators to help with ambiguous `ApplicationController` issuePiotr Sarnacki2012-05-201-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In development mode, dependencies are loaded dynamically at runtime, using `const_missing`. Because of that, when one of the constants is already loaded and `const_missing` is not triggered, user can end up with unexpected results. Given such file in an Engine: ```ruby module Blog class PostsController < ApplicationController end end ``` If you load it first, before loading any application files, it will correctly load `Blog::ApplicationController`, because second line will hit `const_missing`. However if you load `ApplicationController` first, the constant will be loaded already, `const_missing` hook will not be fired and in result `PostsController` will inherit from `ApplicationController` instead of `Blog::ApplicationController`. Since it can't be fixed in `AS::Dependencies`, the easiest fix is to just explicitly load application controller. closes #6413
* Replace ruby-debug19 which doesnt work on 1.9.3 out of the box with a more ↵Aditya Sanghi2012-04-171-2/+2
| | | | maintained debugger gem
* "rails new -h" shows message in rails directoryask2012-04-131-0/+10
|
* Usage file in generators shouldn't be fetched only based on source_rootPiotr Sarnacki2012-04-022-1/+5
| | | | | | | | In case `source_roout` is not set, `default_source_root` is used, which includes also `templates` directory. If there is no `templates` directory, `default_source_root` is not available and USAGE will not be displayed. USAGE should be also checked based on default directory excluding `templates`.
* Add arel branch to the testsRafael Mendonça França2012-03-271-1/+1
|
* [3-2-stable] Port of #5522 'Fix adding/removing field's index when ↵Marcelo Silveira2012-03-211-0/+18
| | | | generating migration'
* [3-2-stable] Remove blank line from generated migrationMarcelo Silveira2012-03-201-0/+1
|
* Build fix for app_generator_test.rbArun Agrawal2012-03-181-1/+1
|
* Use Ruby 1.8 hash syntaxRafael Mendonça França2012-03-132-8/+32
|
* Use the attributes hash explicitlyRafael Mendonça França2012-03-132-6/+26
|
* Do not use the attributes hash in the scaffold functional testsRafael Mendonça França2012-03-132-2/+9
|
* Only add the whitelist_attributes option if ActiveRecord is presentRafael Mendonça França2012-03-041-0/+6
| | | | | | | Conflicts: railties/test/generators/app_generator_test.rb railties/test/isolation/abstract_unit.rb
* Whitelist all attribute assignment by default.Michael Koziarski2012-03-051-0/+10
| | | | Change the default for newly generated applications to whitelist all attribute assignment. Also update the generated model classes so users are reminded of the importance of attr_accessible.
* --edge option should generate app with rails 3-2-stableGuillermo Iguaran2012-02-072-3/+3
|
* Fix plugin_new test failure from c8c84397Prem Sichanugrist2012-02-012-3/+7
| | | | | `plugin_new` generator doesn't generate `sass-rails` in the Gemfile, so you can't check for that.
* Fix GH #4749. Remove branch options, because edge is not 3-2-stable.kennyj2012-02-011-0/+5
|
* Support decimal{1,2} and decimal{1-2} and decimal{1.2} so it works fine with ↵José Valim2012-01-221-3/+3
| | | | bash, zsh, etc, closes #4602
* Merge pull request #4451 from guilleiguaran/add-therubyracer-commentedJosé Valim2012-01-131-4/+2
|
* Remove duplicated test line which was causing Ci failures on 1.8.7.José Valim2012-01-101-1/+0
|
* Last attempt to fix 1.8.7 tests.José Valim2011-12-242-7/+14
|
* assert_not_match -> assert_no_match.José Valim2011-12-242-6/+6
|
* Tidy up migration types.José Valim2011-12-243-3/+8
|
* added ability to specify from cli when generating a model/migration whether ↵Dmitrii Samoilov2011-12-243-1/+131
| | | | particular property should be an index like this 'rails g model person name:string:index profile:string'
* Warning removed in testArun Agrawal2011-12-181-1/+1
|
* No need 'abstract_unit' here. It's already in 'generators_test_helper'Arun Agrawal2011-12-182-2/+0
|
* Merge pull request #4009 from kirs/generate-rake-taskPiotr Sarnacki2011-12-171-0/+12
|\ | | | | Rake tasks generator
| * Rake tasks generator with testKir2011-12-171-0/+12
| |
* | strip whitespace errors from the generated GemfileAaron Patterson2011-12-121-0/+10
| |
* | Skip assets options in environments files when --skip-sprockets is usedGuillermo Iguaran2011-12-111-0/+7
| |
* | Merge pull request #3925 from guilleiguaran/extra-test-for-therubyrhinoYehuda Katz2011-12-091-1/+5
|\ \ | | | | | | Add test to verify that therubyrhino isn't included when JRuby isn't used
| * | Add test to verify that therubyrhino isn't included when JRuby isn't usedGuillermo Iguaran2011-12-091-1/+5
| | |
* | | Skip assets groups if --skip-sprockets option is givenGuillermo Iguaran2011-12-091-0/+5
|/ /
* | Add the .rdoc extension to the README that Rails generates for a new applicationSteve Richert2011-12-091-3/+3
| |
* | Simplifying test in app/generatorArun Agrawal2011-12-031-3/+3
| |
* | implements automatic EXPLAIN logging for slow queriesXavier Noria2011-12-021-0/+9
|/
* avoid absolute path for the rails.png in index.htmlkennyj2011-11-271-0/+1
|
* added tests, replaced classify with constantize - using classify here cuts ↵Jakub Kuźma2011-11-261-0/+38
| | | | the last 's' in ORM name
* Revert the serializers API as other alternatives are now also under discussionJosé Valim2011-11-252-72/+0
|
* Updating newline fix to maintain existing linebreaks and indentation and ↵John Donahue2011-11-251-4/+6
| | | | test for b/eol on inserts
* Merge branch 'serializers'José Valim2011-11-252-0/+72
|\ | | | | | | | | | | | | | | | | This implements the ActiveModel::Serializer object. Includes code, tests, generators and guides. From José and Yehuda with love. Conflicts: railties/CHANGELOG.md