aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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
|/ /
* | Rails.application should be set inside before_configuration hookRafael Mendonça França2014-04-072-0/+14
| | | | | | | | Fixes #14620
* | Declare the assets dependencyRafael Mendonça França2014-04-041-7/+8
| |
* | Revise 'sqlite3:' URL handling for smoother upgradesMatthew Draper2014-04-032-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll change to the absolute-path interpretation in 4.2. The current "correct" spellings for in-memory, relative, and absolute URLs, respectively, are: sqlite3::memory: sqlite3:relative/path sqlite3:/full/path Substantially reverses/defers fbb79b517f3127ba620fedd01849f9628b78d6ce. Uncovered by @guilleiguaran while investigating #14495, though that sounds like a different issue.
* | Fix build with bundler 1.6Rafael Mendonça França2014-03-261-1/+1
| |
* | Fix Generation of proper migration whenKuldeep Aggarwal2014-03-251-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | ActiveRecord::Base.pluralize_table_names = false. Previously, generation a migration like this: rails g migration add_column_name_to_user name would not generating the correct table name. Fixes #13426.
* | Check if any sqlite files are not included in the gitignoreRafael Mendonça França2014-03-241-2/+2
| | | | | | | | | | If the sqlite file name change in future version we this regexp should catch
* | Remove sqlite3 lines from .gitignore if the application is not using sqlite3.Dmitrii Golub2014-03-241-1/+25
| |
* | test for structure:dump without schema information table. refs eafec46Yves Senn2014-03-201-0/+12
| | | | | | | | This is a test case for the fix provided in eafec4694c5b37eff9d83b1188b8e331fa6027fa
* | Remove some indirection in rake dbs testCarlos Antonio da Silva2014-03-201-34/+20
| | | | | | | | | | Just pass in the expected database as argument rather than "caching" it in a hash and using the hash in the helper methods.
* | Check if the output is empty rather than asserting for equalityCarlos Antonio da Silva2014-03-201-5/+4
| | | | | | | | Also fix indent of test block.
* | Refactor assertion of line numbers matching 4 spacesCarlos Antonio da Silva2014-03-191-16/+4
| |