1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test
schneems 72f45ba292 Emit suggested generator names when not found
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.
2014-06-04 16:28:43 -05:00
..
application Default config.assets.digests to true in development 2014-05-17 23:01:22 -04:00
commands Isolate debugger related code 2014-04-10 16:02:13 +02:00
configuration Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest 2013-12-18 14:39:50 +05:30
fixtures Remove --builder option from rails command 2013-02-24 14:31:08 -05:00
generators Merge pull request #14881 from robin850/patch-19 2014-06-01 18:23:10 +02:00
isolation Favor canonical environment variables for secrets 2014-01-13 14:31:43 -06:00
railties rake railties:install:migrations respects the order of railties 2014-05-27 16:12:36 +02:00
abstract_unit.rb standardize on jruby_skip & rbx_skip 2014-01-13 19:51:47 +05:30
app_rails_loader_test.rb Add a test-case for GH #13825 2014-01-24 14:10:46 -05:00
backtrace_cleaner_test.rb
code_statistics_calculator_test.rb Improve rake stats for JavaScript and CoffeeScript. 2013-02-25 21:08:11 +08:00
engine_test.rb
env_helpers.rb Make logging to stdout work again with implicit development env 2013-10-13 19:21:18 +02:00
generators_test.rb Emit suggested generator names when not found 2014-06-04 16:28:43 -05:00
initializable_test.rb Remove not used module from initializable test 2013-05-01 23:21:08 -03:00
paths_test.rb Fix some failing tests for Rails::Paths 2013-11-01 14:42:12 +01:00
rack_logger_test.rb "Naked" rescue clauses only catch StandardError subclasses. 2013-08-06 17:04:02 +02:00
rails_info_controller_test.rb Remove missing integration points of AV extraction 2013-12-05 11:39:56 +01:00
rails_info_test.rb Add a test case for comparing Rails versions 2013-05-03 14:18:57 -04:00
test_info_test.rb Privatize non-test method 2013-07-25 17:08:43 +09:00
version_test.rb Introduce Rails.gem_version 2014-03-05 12:37:38 -05:00