aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename preview_enabled option to show_previewsRafael Mendonça França2014-07-012-10/+10
|
* Add configuration to enable mail previewsLeonard Garvey2014-07-012-0/+38
| | | | | | | | | | | | | | | | | | Adds `config.action_mailer.preview_enabled` This allows mail previewing to be enabled easily in non-development environments such as staging. The default is set to true for development so no changes should be required to existing Rails applications. The mail preview path can still be configured using the existing `config.action_mailer.preview_path` configuration option. Adding this avoids devs from having to do stuff like: https://gist.github.com/lengarvey/fa2c9bd6cdbeba96526a Update actionmailer/CHANGELOG with new configuration. Update configuring guide with new configuratation. Add `config.action_mailer.preview_path` to configuring guide.
* Merge pull request #15933 from rafael/masterRafael Mendonça França2014-06-271-0/+38
|\ | | | | | | | | | | Add always permitted parameters as a configurable option. [Rafael Mendonça França + Gary S. Weaver]
| * Improvements per code review.Rafael Chacón2014-06-271-0/+25
| | | | | | | | | | | | * General style fixes. * Add changes to configuration guide. * Add missing tests.
| * Add always_permitted_parameters as an option.Rafael Chacón2014-06-261-0/+13
| | | | | | | | | | | | | | | | | | * This commit adds back the always_permitted_parameters configuration option to strong paramaters. * The initial pull requests where this feature was added are the following: - https://github.com/rails/rails/pull/12682 - https://github.com/rails/strong_parameters/pull/174
* | Add a test for db:migrate:status to check missing file scenarioViktar Basharymau2014-06-271-0/+15
| |
* | Add a '--skip-routes' flag for the Controller generator.Lucas Mazza2014-06-241-0/+7
| | | | | | | | | | This way it is possible to skip the addition of the 'get "foo/bar"' routes when generating a controller.
* | initialize the right variableRafael Mendonça França2014-06-171-1/+1
| |
* | Add a generic --skip-gems options to generatorRafael Mendonça França2014-06-171-2/+3
| | | | | | | | | | | | | | | | | | | | Also remove --skip-turbolinks. This option is useful if users want to remove some gems like jbuilder, turbolinks, coffee-rails, etc that don't have specific options on the generator. rails new my_app --skip-gems turbolinks coffee-rails
* | Merge pull request #15716 from schuetzm/skip-turbolinksRafael Mendonça França2014-06-171-0/+14
|\ \ | | | | | | Add an option to skip installation of Turbolinks
| * | Add an option to skip installation of TurbolinksMarc Schütz2014-06-141-0/+14
| | |
* | | allow preview interceptors to be registered through `config.action_mailer`.Yves Senn2014-06-151-0/+32
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was partially broken because `preview_interceptors=` just assigned the raw values, whithout going through `register_preview_interceptor`. Now the Action Mailer railtie takes care of the `preview_interceptors` option. This commit is a partial revert of: Revert "Merge pull request #15739 from y-yagi/correct_doc_for_action_mailer_base" This reverts commit a15704d7f35f17d34d0118546799141d6f853656, reversing changes made to 1bd12a8609d275ad75fcc4b622ca4f5b32dc76be. /cc @kuldeepaggarwal @y-yagi
* | Merge pull request #15394 from ↵Yves Senn2014-06-121-1/+90
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | morgoth/fix-automatic-maintaining-test-schema-for-sql-format ActiveRecord::Migration.maintain_test_schema! doesn't work with structure.sql Conflicts: activerecord/CHANGELOG.md
| * | Fixed automatic maintaining test schema to properly handle sql structure ↵Wojciech Wnętrzak2014-06-121-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | schema format. Additionally: * It changes `purge` task on `sqlite3` adapter to recreate database file, to be consistent with other adapters. * Adds `purge` step when loading from `schema.rb`
| * | Added missing test case for migrations when using sql structureWojciech Wnętrzak2014-06-011-1/+40
| | |
* | | remove unnused method from testFabian Rodriguez2014-06-111-10/+0
| | |
* | | Emit suggested generator names when not foundschneems2014-06-041-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.
* | | Merge pull request #14881 from robin850/patch-19Yves Senn2014-06-011-5/+8
|\ \ \ | |/ / |/| | Swallow bundler exceptions when running tests
| * | Swallow bundler exceptions when running testsRobin Dupret2014-04-271-5/+8
| | | | | | | | | | | | Let's avoid useless output when testing stuff related to Bundler.
* | | `bin/setup` script to bootstrap applications.Yves Senn2014-05-301-0/+1
| | |
* | | Merge pull request #15269 from arunagw/aa-fixes-8930Rafael Mendonça França2014-05-271-0/+32
|\ \ \ | | | | | | | | rake railties:install:migrations respects the order of railties
| * | | rake railties:install:migrations respects the order of railtiesArun Agrawal2014-05-271-0/+32
| | | | | | | | | | | | | | | | This PR fixes #8930 and some stuff from #8985
* | | | Merge pull request #15327 from alexbel/replace_double_quotes_with_single_quotesYves Senn2014-05-271-7/+15
|\ \ \ \ | | | | | | | | | | | | | | | Replace double quotes with single quotes while adding an entry into Gemfile
| * | | | Replace double quotes with single quotes while adding an entry into Gemfilealexbel2014-05-261-7/+7
|/ / / /
* | | | Merge pull request #15294 from schneems/schneems/generator-output-in-error2Rafael Mendonça França2014-05-261-2/+4
|\ \ \ \ | | | | | | | | | | print generators on failed generate
| * | | | print generators on failed generateschneems2014-05-261-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.
* / / / Remove unnecessary require of Minitest.Guo Xiang Tan2014-05-242-2/+2
|/ / / | | | | | | | | | Minitest has already been required when calling Minitest.autorun.
* | | Default config.assets.digests to true in developmentDan Kang2014-05-172-14/+13
| | |
* | | New applications should be created with json serializerRafael Mendonça França2014-05-171-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix introduced at 75ba7425f6d235f254c00a45a58f42e88f80301a were missing this case. To fix the original issue mentioned at that commit the correct is to remove update_config_files from the command list since we should not run both config_files command when creating a new application. Tests were added to make sure everything is working fine.
* | | Fix app generator test hanging.Christian Wesselhoeft2014-05-171-2/+2
| | |
* | | Ok. Enough models for today :rage:Rafael Mendonça França2014-05-121-3/+6
| | |
* | | This is also a modelRafael Mendonça França2014-05-121-1/+1
| | |
* | | This model is a model so it should behaves like oneRafael Mendonça França2014-05-121-7/+3
| | |
* | | Change Gemfile’s double quotes in plugin generatorJosemar Luedke2014-05-101-4/+4
| | | | | | | | | | | | | | | Since the generated application’s Gemfile is using single quotation marks, it seems fair to use it on plugin’s Gemfile as well.
* | | Merge pull request #15015 from pothibo/database-configurationRafael Mendonça França2014-05-071-0/+16
|\ \ \ | | | | | | | | Use Rails::Paths::Path#existent in database_configuration
| * | | Use Rails::Paths::Path#existent in database_configurationPier-Olivier Thibault2014-05-071-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Database configuration was trying to load the first path that config.paths['config/database'] was returning even if the path didn't exist in the filesystem. Because Rails::Paths::Path has the possibility to return more than 1 path (as an array), database_configuration should filter down the paths to the existing one and then load the first one. This would make it possible to move the database.yml file and add the new path to paths['config/database'] and still load the configurations.
* | | | Return a non zero code when db has never been setup on statusPaul B2014-05-071-1/+1
|/ / /
* | | rename `str` to `string` to fix overshadowing of variableVipul A M2014-05-071-1/+1
| | |
* | | skip-git should not hit git commands plugin generatorsArun Agrawal2014-05-021-8/+18
| | |
* | | Works correctly if git not installedRoman Shmatov2014-05-021-0/+24
|/ /
* | Precompile the image we're referencing, too.Matthew Draper2014-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | You can't compile a file that references a non-compiled asset's path. .. unless you turn off asset runtime errors. Outside of a test case like this, `config.assets.precompile` would normally retain its default entry, which precompiles all images (and other non-JS/CSS files) that are in `app/assets`.
* | Make console and generators blocks works at Application instance levelRafael Mendonça França2014-04-142-0/+96
| | | | | | | | | | | | | | Like rake tasks and runner blocks these blocks should also being shared between applications since they are stored at the classes. Fixes #14748
* | :scissors:Rafael Mendonça França2014-04-141-4/+4
| |
* | Merge pull request #14646 from deivid-rodriguez/provide_byebug_by_defaultRafael Mendonça França2014-04-113-17/+29
|\ \ | | | | | | Improve debugging support
| * | Isolate debugger related codeDavid Rodríguez de Dios2014-04-101-13/+19
| | |
| * | Update Gemfile templates to provide correct debuggerDavid Rodríguez de Dios2014-04-082-4/+10
| | |
| * | Keep debugger support only for rubies < 2.0.0David Rodríguez de Dios2014-04-081-3/+3
| | |
* | | Move assets precompile (and version) to an initializerMatthew Draper2014-04-111-1/+1
| | | | | | | | | | | | | | | sprockets-rails 2.1 needs the precompile list to be available in all environments.
* | | depend_on_asset is not required anymore on sprockets-rails 2.1.2Rafael Mendonça França2014-04-091-6/+6
| | |
* | | Use short-form for the scaffold render calls and drop the needless testDavid Heinemeier Hansson2014-04-081-7/+0
|/ /