Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | applies new string literal convention in railties/test | Xavier Noria | 2016-08-06 | 1 | -9/+9 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Cleaned up generators tests using internal assertion helper | Ronak Jangir | 2015-08-20 | 1 | -17/+7 |
| | |||||
* | Remove use of mocha in the railties generators tests | Ronak Jangir | 2015-05-22 | 1 | -18/+34 |
| | |||||
* | Fix generator tests | Rafael Mendonça França | 2015-05-03 | 1 | -1/+1 |
| | | | | In my machine the output is different | ||||
* | Revert "Fix multiple suggestion test" | Arthur Neves | 2015-04-25 | 1 | -1/+1 |
| | | | | This reverts commit 6a7cf515123889360d272e8ab4be045578dfc0fb. | ||||
* | Fix multiple suggestion test | Arthur Neves | 2015-04-25 | 1 | -1/+1 |
| | |||||
* | Add test for multiple suggested generator names. | Josef Šimánek | 2015-04-25 | 1 | -0/+6 |
| | |||||
* | Fix Railties tests that were order dependent | Akira Matsuda | 2014-08-13 | 1 | -0/+10 |
| | |||||
* | Stop requiring mocha automatically | Rafael Mendonça França | 2014-07-19 | 1 | -0/+1 |
| | | | | | | | | | | | We are planning to remove mocha from our test suite because of performance problems. To make this possible we should stop require mocha on ActionSupport::TestCase. This should not affect applications since users still need to add mocha to Gemfile and this already load mocha. Added FIXME notes to place that still need mocha removal | ||||
* | Emit suggested generator names when not found | schneems | 2014-06-04 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | When someone types in a generator command it currently outputs all generators. Instead we can attempt to find a subtle mis-spelling by running all generator names through a levenshtein_distance algorithm provided by rubygems. So now a failure looks like this: ```ruby $ rails generate migratioooons Could not find generator 'migratioooons'. Maybe you meant 'migration' or 'integration_test' or 'generator' Run `rails generate --help` for more options. ``` If the suggestions are bad we leave the user with the hint to run `rails generate --help` to see all commands. | ||||
* | print generators on failed generate | schneems | 2014-05-26 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's say we just ran: ``` $ rails g migrate add_click_to_issue_assignment ``` We will get an error that looks like: ``` Could not find generator migrate. ``` This patch adds all existing migrations to the output to make it easier for a developer to find a valid migration. ``` Could not find generator "migrate". Please select a valid generator: Rails: assets controller generator helper integration_test mailer migration model resource scaffold scaffold_controller task ``` It would be nice to do some spelling detection and suggest alternatives, but for now this should help. | ||||
* | More Warnings removed for ruby trunk | Arun Agrawal | 2013-11-01 | 1 | -2/+2 |
| | | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb | ||||
* | Revert "Isolate railties Generators Tests" | Guillermo Iguaran | 2013-08-02 | 1 | -1/+0 |
| | | | | | This fixes railties tests in JRuby but break it in MRI This reverts commit fea99276c7024f183bf72a16ad9f36af4bae1d42. | ||||
* | Isolate railties Generators Tests | Alex Tambellini | 2013-08-02 | 1 | -0/+1 |
| | | | | With this change jruby should pass all of the railties tests. | ||||
* | s/plugin_new/plugin | schneems | 2013-06-30 | 1 | -1/+1 |
| | | | | | There are historical reasons that the `plugin` command was `plugin_new`, now those are no longer applicable, we should remove the naming edge case from the project. This PR is based off of comments from #11176 ATP Railties | ||||
* | cleanup railties test; fix typos | Vipul A M | 2013-03-31 | 1 | -1/+1 |
| | |||||
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 1 | -4/+4 |
| | |||||
* | Fix class_eval without __FILE__ and __LINE__. | kennyj | 2012-07-18 | 1 | -1/+1 |
| | |||||
* | remove duplicate requires of mocha. | Aaron Patterson | 2012-07-03 | 1 | -1/+0 |
| | | | | | Mocha is already required by AS::TestCase, so remove the duplicate requires. | ||||
* | Unused variable warning removed. | Arun Agrawal | 2012-05-30 | 1 | -1/+1 |
| | |||||
* | More assert_match warnings fixed. | Arun Agrawal | 2012-05-30 | 1 | -1/+1 |
| | |||||
* | Remove --http. | José Valim | 2012-03-14 | 1 | -51/+0 |
| | |||||
* | Generate special controller and functional test templates for http apps | Carlos Antonio da Silva | 2012-03-14 | 1 | -1/+10 |
| | | | | | | | | | | | | 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] | ||||
* | Disable template, helper and assets options when using http_only! | Carlos Antonio da Silva | 2012-03-14 | 1 | -0/+18 |
| | | | | [Carlos Antonio da Silva & Santiago Pastorino] | ||||
* | Create generators http_only! setup and hide some common namespaces for now | Carlos Antonio da Silva | 2012-03-14 | 1 | -0/+24 |
| | | | | [Carlos Antonio da Silva & Santiago Pastorino] | ||||
* | Add convenience method to hide a generator from the available ones | Carlos Antonio da Silva | 2012-02-03 | 1 | -1/+7 |
| | | | | | | It is usually useful to be able to hide a generator when running rails generate command. Such generators might be used only to dry up generators code and shouldn't be available to end users. | ||||
* | treat USAGE as an ERB template | Colin MacKenzie IV | 2011-11-02 | 1 | -0/+6 |
| | |||||
* | Removed tests for rescue branch for Rails 2.x compatibility | Alexey Gaziev | 2011-06-20 | 1 | -6/+0 |
| | |||||
* | load_generators_from_railties was removed, remove failing ↵ | Guillermo Iguaran | 2011-05-24 | 1 | -7/+0 |
| | | | | test_load_generators_from_railties | ||||
* | be sure to parenthesize the arguments when the first one is a RegExp literal | Akira Matsuda | 2011-05-18 | 1 | -15/+15 |
| | | | | | | this fixes: "warning: ambiguous first argument; put parentheses or even spaces" because: you need this to tell the parser that you're not calling :/ method (division) details (Japanese!): http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-dev/42445?42370-43277 | ||||
* | Allow generators nested in more than one level | Santiago Pastorino | 2011-01-12 | 1 | -0/+8 |
| | |||||
* | Make sure that generator's default banner is showing its namespace | Prem Sichanugrist | 2011-01-01 | 1 | -0/+10 |
| | | | | This will make `rails g rspec:install --help` shows "rails generate rspec:install [options]" and not "rails generate install [options]" | ||||
* | Tidy up generators commits. | José Valim | 2010-11-17 | 1 | -0/+6 |
| | |||||
* | application generation: --skip-testunit and --skip-activerecord renamed to ↵ | Xavier Noria | 2010-07-25 | 1 | -1/+1 |
| | | | | | | | | --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. | ||||
* | Update generators test. | José Valim | 2010-05-15 | 1 | -12/+1 |
| | |||||
* | Load generators from both lib/rails/generators and lib/generators. Using the ↵ | José Valim | 2010-03-23 | 1 | -2/+2 |
| | | | | former since it's less obstrusive. | ||||
* | Prettify generators description whenever using the default stack [#4143 ↵ | José Valim | 2010-03-12 | 1 | -2/+16 |
| | | | | status:resolved] | ||||
* | Add autoload to generators modules and fix failing test. | José Valim | 2010-02-26 | 1 | -4/+4 |
| | |||||
* | Fix dangling klass reference | Jeremy Kemper | 2010-02-25 | 1 | -1/+1 |
| | |||||
* | Fix test on 1.8.8. Broken by inherited hook now running before Class.new block. | Jeremy Kemper | 2010-02-25 | 1 | -5/+6 |
| | |||||
* | Ensure app does not show up in generators. | José Valim | 2010-01-26 | 1 | -0/+1 |
| | |||||
* | Give higher priority to rails generators. | José Valim | 2010-01-21 | 1 | -0/+8 |
| | |||||
* | Allow railties to specify generators paths. | José Valim | 2010-01-19 | 1 | -0/+7 |
| | |||||
* | Get generators tests running on Ruby 1.9.1 | José Valim | 2010-01-19 | 1 | -1/+2 |
| | |||||
* | Improve generators help. | José Valim | 2010-01-18 | 1 | -8/+9 |
| | |||||
* | More cleaning up on rails generators load path. | José Valim | 2010-01-18 | 1 | -62/+45 |
| | |||||
* | Automatically remove :generators: from namespaces. | José Valim | 2010-01-18 | 1 | -6/+6 |
| | |||||
* | Ensure generators can be invoked by their shortcut and remove attr_reader tasks. | José Valim | 2010-01-18 | 1 | -2/+2 |
| | |||||
* | Use regexp in lookups instead of traversing namespaces. This removes the ↵ | José Valim | 2010-01-03 | 1 | -8/+9 |
| | | | | need of special cases. | ||||
* | Ensure generator fallbacks work even when a context is given. | José Valim | 2009-11-23 | 1 | -0/+7 |
| | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local> |