aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6681 from arunagw/plugin_gen_fixRafael Mendonça França2012-06-081-2/+8
|\ | | | | Plugin gen fix
| * 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
| |
* | Don't add sqlite3 to gemspec with -O on rails plugin newPiotr Sarnacki2012-06-081-0/+8
|/ | | | (closes #6672)
* Fixed the application_controller require_dependency path generated by the ↵Fred Wu2012-06-061-1/+3
| | | | app generator
* Fixed the Gemfile when gemspec is skipped in the 'rails plugin new' commandFred Wu2012-06-051-0/+26
|
* Fix app_generator_test with the changes introduced atRafael Mendonça França2012-05-301-1/+1
| | | | f4d7af67ffc90f2542afa50c7579fc83ea4f45f2
* Remove unnecessary comment.Uģis Ozols2012-05-231-1/+0
|
* Use new hash syntax for generators gem methodAlexey Vakhov2012-05-222-2/+10
| | | | | | The Gemfile of new application uses ruby 1.9 hashes. Gem method of generators should use them too. It prevents from mixing two kinds of syntax in one file.
* 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
* Remove warning in namespaced generator testCarlos Antonio da Silva2012-05-191-1/+1
|
* Fix railties testsPiotr Sarnacki2012-05-191-1/+1
| | | | | Minitest uses different signature for assert_no_match, so we have to swap arguments.
* Revert changes related to `bundle install` fixes in `rails new`Piotr Sarnacki2012-05-171-7/+2
| | | | | | | | | | | Reverted changes: f3482a9 Fix tests in railties 5904295 improve #6318 aed906a prevent using already loaded Gemfile for 'bundle install' In order to fix this, we need a fix in bundler related to GEM_PATH, which will allow to run tests properly. I will get this changes back when it happens.
* Fix tests in railtiesPiotr Sarnacki2012-05-151-1/+1
| | | | | | | | Since `bundle install` was fixed in `rails plugin new`, it now requires `rails 4.0.0.beta` version in filesystem when running tests. Instead of providing it, we can run tested command with `--dev` option, to use rails from the local directory.
* improve #6318Michal Papis2012-05-151-1/+6
|
* Remove not used date variable and another test warningCarlos Antonio da Silva2012-05-141-2/+1
|
* Remove assertion on date from humans.txt testsJosé Valim2012-05-141-1/+1
|
* Refactor App Generator TestOscar Del Ben2012-05-131-22/+20
|
* Failing test for #6251Piotr Sarnacki2012-05-101-0/+7
|
* Adding test for humans.txtArun Agrawal2012-05-081-0/+6
|
* Fix build for railties generators Arun Agrawal2012-05-022-3/+3
|
* build fix for SharedGeneratorTestsArun Agrawal2012-05-021-2/+2
|
* Build fix for plugin new generator changeCarlos Antonio da Silva2012-05-011-2/+2
| | | | Related to a06a84bf77082a7435973fa1b6c8254fb410f243
* Fix testsPiotr Sarnacki2012-05-011-1/+1
|
* Merge pull request #5530 from ↵José Valim2012-04-301-0/+7
|\ | | | | | | | | malclocke/add_option_to_skip_index.html_on_rails_generate Added a generator option to skip the public/index.html file
| * Added a generator option to remove the public/index.html file when ↵Ivan Vanderbyl2012-03-211-0/+7
| | | | | | | | | | | | | | generating a new Rails application The option is: -i, [--skip-index-html] # Skip public/index.html file
* | Namedspaced generator indent method test refactoringAlexey Vakhov2012-04-261-3/+4
| |
* | Merge pull request #5902 from avakhov/generator-no-indent-blank-linesJosé Valim2012-04-251-0/+8
|\ \ | | | | | | Don't indent blank lines in named base generators
| * | Don't indent blank lines in named base generatorsAlexey Vakhov2012-04-251-0/+8
| | |
* | | Remove lonely number signAlexey Vakhov2012-04-251-1/+1
|/ /
* | Fix testSantiago Pastorino2012-04-161-2/+2
| |
* | fix scaffold_generator_test.rb and model_generator_test.rbArun Agrawal2012-04-162-8/+6
| | | | | | | | Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081
* | "rails new -h" shows message in rails directoryask2012-04-091-0/+10
| |
* | Usage file in generators shouldn't be fetched only based on source_rootPiotr Sarnacki2012-04-012-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`.
* | Avoid another blank line in generated migration and remove assertion as per ↵Marcelo Silveira2012-03-211-1/+0
| | | | | | | | @spastorino request
* | Merge pull request #5532 from mhfs/migration_blank_lineJosé Valim2012-03-211-0/+1
|\ \ | | | | | | Remove blank line from generated migration
| * | Remove blank line from generated migrationMarcelo Silveira2012-03-201-0/+1
| |/
* / Generate Migration Thats Adds Removed IndexTravis Jeffery2012-03-211-0/+18
|/ | | | | When generating a migration that removes a field with an index, the down will add both the field and its index.
* Build fix for app_generator_test.rbArun Agrawal2012-03-181-1/+1
|
* Remove --http.José Valim2012-03-143-76/+0
|
* Do not generate app/views and sprockets entries on http appCarlos Antonio da Silva2012-03-141-1/+16
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Generate special controller and functional test templates for http appsCarlos Antonio da Silva2012-03-142-0/+43
| | | | | | | | | | | | The main goal is to not generate the format.html block in scaffold controller, and to generate a different functional test as we don't rely on redirects anymore, we should test for http responses. In addition to that, the :edit action is removed from the http controller and the edit route is not generated by default, as they usually do not make sense in this scenario. [Carlos Antonio da Silva & Santiago Pastorino]
* Rename http-only app generator option to httpCarlos Antonio da Silva2012-03-141-5/+5
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Remove duplicated tests from shared generatorCarlos Antonio da Silva2012-03-142-16/+2
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Generate middleware http_only! config when running http only app generatorCarlos Antonio da Silva2012-03-141-0/+6
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Add http-only option to Rails app generatorCarlos Antonio da Silva2012-03-141-0/+10
| | | | | | | Change application controller template accordingly, to inherit from ActionController::HTTP and not generate protect_from_forgery call. [Carlos Antonio da Silva & Santiago Pastorino]
* The sprockets railtie was moved to sprockets/rails/railtieGuillermo Iguaran2012-03-131-1/+1
|
* Refactor the test_unit scaffold generator to use the key_value methodRafael Mendonça França2012-03-132-8/+8
|
* Use the attributes hash explicitlyRafael Mendonça França2012-03-132-6/+26
|