aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 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
| |
* | Move booting/loading tasks setup to the rake notes helper methodCarlos Antonio da Silva2014-03-191-15/+3
| |
* | Extract rake notes command and lines scan boilerplateCarlos Antonio da Silva2014-03-191-19/+14
| | | | | | | | Refactor to a reusable method.
* | Remove extra space assertionCarlos Antonio da Silva2014-03-191-3/+2
| | | | | | | | | | No need to check that each line contains an extra space, just matching the space in the regexp is enough to ensure that.
* | Extract common setup for loading tasks in rake notes testsCarlos Antonio da Silva2014-03-191-29/+14
| |
* | Merge pull request #14379 from robertomiranda/rake-notes.configGuillermo Iguaran2014-03-172-14/+40
|\ \ | | | | | | Add Public Api for Register New Extensions for Rake Notes
| * | Rake notes should picked up new Extensions registered in the ↵robertomiranda2014-03-171-3/+19
| | | | | | | | | | | | config/application.rb file
| * | Add config.annotations, in order to register new extensions for Rake notes ↵robertomiranda2014-03-161-0/+10
| | | | | | | | | | | | at config level
| * | Fix Shadowing extensions variable in Register Annotation Exentsionsrobertomiranda2014-03-161-5/+5
| | |
| * | Supporting .ruby, .yml and .yaml Extension in Rake Notesrobertomiranda2014-03-141-1/+6
| | |
| * | Remove .scss, .sass, .less, .haml, .slim, coffee from Rake Notes. Now we ↵robertomiranda2014-03-141-13/+3
| | | | | | | | | | | | have an API for register it in the corresponding gems
| * | Add Public Api for register new extensions for Rake Notesrobertomiranda2014-03-141-0/+5
| | |
* | | Fix assertionsCarlos Antonio da Silva2014-03-161-2/+2
| | |
* | | better test error messagesschneems2014-03-141-4/+4
|/ /