aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
* log and readme should respect --quietJosé Valim2011-03-041-0/+25
|
* Always use ActionDispatch::ShowExceptions middleware [#6462 state:resolved]Prem Sichanugrist2011-02-252-2/+39
| | | | This will make sure the application will raise `ActionController::RoutingError` in case "X-Cascade: pass" header was set, usually when there's no route match.
* Make sure that we set `env["action_dispatch.show_exceptions"]`Prem Sichanugrist2011-02-251-0/+15
| | | | This has been used by `show_exception` middleware even the setting wasn't get passed to `env` hash.
* Removing redundant File.expand_path from generators testVinicius Baggio2011-02-231-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* We really don't care about IM middleware order, the important is that it ↵Emilio Tagua2011-02-181-1/+1
| | | | gets included.
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-181-0/+5
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association.rb activerecord/lib/active_record/fixtures.rb
| * Fixed issue #6363, avoid to pluralized already pluralized names and ↵Timothy N. Tsvetkov2011-02-161-0/+5
| | | | | | | | | | | | | | | | singularize a single in generators, for example stadia is a valid plural for stadium. But calling pluralize for stadia will return stadias which sematically is not corrent in this case [#6363 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-159-18/+188
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * Failing test for #6388Eric Allam2011-02-091-0/+28
| |
| * fix db:fixtures:load with FIXTURES specified [#6061 state:resolved]John Hawthorn2011-02-061-0/+17
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Correct migration name the test is looking to match.Ben Orenstein2011-02-041-1/+1
| | | | | | | | | | | | [#6375 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Configurable generation of add_index for references columnsMichał Łomnicki2011-02-011-0/+41
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Additionally trigger i18n configuration setup before any eager loading ↵Saimon Moore2011-02-011-0/+30
| | | | | | | | | | | | | | | | | | [#6353 state:resolved] This handles the case where config.cache_classes is true and classes are loaded before the I18n load path has had a chance to be populated. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Test non zero exit code and that a message still appears when generating ↵Philip Arndt2011-01-291-0/+11
| | | | | | | | inside an existing Rails directory.
| * Dir.chdir is not useful in this test, that was for another one I am planning ↵Philip Arndt2011-01-291-4/+3
| | | | | | | | to do.
| * Added test to ensure non zero exit codes when generating an application with ↵Philip Arndt2011-01-291-0/+7
| | | | | | | | | | | | a reserved name. Unfortunately, I can't find out how to suppress its output so we see ....Invalid application name test. Please give a name which does not match one of the reserved rails words.....................................
| * change sqlite3-ruby => sqlite3 in the generatorsAaron Patterson2011-01-162-2/+2
| |
| * README.rdoc is a templateSantiago Pastorino2011-01-151-0/+1
| |
| * plugin new generator should generate config/routes.rb file for full enginesSantiago Pastorino2011-01-141-1/+3
| |
| * Allow generators nested in more than one levelSantiago Pastorino2011-01-121-0/+8
| |
| * remove locales external to the system before assertionAaron Patterson2011-01-121-5/+5
| |
| * Add test cases for model and migration generators which use `change` method.Prem Sichanugrist2011-01-041-0/+19
| |
| * Use Rails 3.1 `change` method in 'add_' migration generatorPrem Sichanugrist2011-01-041-6/+1
| |
| * Use Rails 3.1 `change` method in model generatorPrem Sichanugrist2011-01-041-6/+2
| |
| * Make sure that generator's default banner is showing its namespacePrem Sichanugrist2011-01-011-0/+10
| | | | | | | | This will make `rails g rspec:install --help` shows "rails generate rspec:install [options]" and not "rails generate install [options]"
| * Do not take gems' i18n locales while testing locales pathsPiotr Sarnacki2010-12-311-2/+8
| |
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-2011-82/+321
|\| | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * Small changes on AD::Reloader.José Valim2010-12-201-3/+3
| |
| * Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepareJohn Firebaugh2010-12-201-4/+4
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
| * Introduce ActionDispatch::ReloaderJohn Firebaugh2010-12-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Based on the implementation on the 2-3-stable branch, patches by Hongli Lai <hongli@phusion.nl>, and helpful suggestions from José Valim. Hongli Lai's patches included locking around the request cycle; this is now handled by Rack::Lock (https://github.com/rack/rack/issues/issue/87/). [#2873] Signed-off-by: José Valim <jose.valim@gmail.com>
| * More love for engines testsPiotr Sarnacki2010-12-191-73/+61
| |
| * Use assert_bodyJohn Firebaugh2010-12-191-22/+14
| |
| * Temporary fix for railties test for newest rack changesPiotr Sarnacki2010-12-191-0/+8
| |
| * Fix tests in railtiesPiotr Sarnacki2010-12-182-13/+13
| |
| * Generate add_index by default when giving type belongs_to or referencesSantiago Pastorino2010-12-161-2/+5
| |
| * Bring back config.action_view.cache_template_loading [#5847 state:resolved]Piotr Sarnacki2010-12-161-0/+38
| |
| * dragdrop was tested twice and effects.js was missing, added checks for ↵Santiago Pastorino2010-12-161-1/+4
| | | | | | | | controls.js, dragdrop.js and effects.js to another test
| * Generate default layout in engine with --mountable optionPiotr Sarnacki2010-12-161-0/+1
| |
| * Fix generation of prototype files, it should work with --javascript ↵Piotr Sarnacki2010-12-161-0/+3
| | | | | | | | prototype, not --prototype
| * Generate javascripts in engine with --mountable optionPiotr Sarnacki2010-12-161-0/+29
| |
| * Set proper engine's asset directories when assets are served from engine.Piotr Sarnacki2010-12-161-0/+64
| | | | | | | | | | | | | | | | | | When using stylesheet_link_tag(:all) or javascript_include_tag(:all), assets directories are searched for css or js files. When config.serve_static_assets is set to true, those files can be served directly from engine's directories. That's why assets paths should be set individually for controllers inside engine if we want to serve static assets with ActionDispatch::Static
| * Skip creating migration if --skip option is passed to model generator [#6144 ↵Piotr Sarnacki2010-12-161-3/+15
| | | | | | | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * Allow to generate namespaced generators [#6140 state:resolved]Piotr Sarnacki2010-12-161-0/+39
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
| * Ensure asset_path defaults to nil for applicationJosé Valim2010-12-091-0/+5
| |
| * Rails::Engine.find(path) - method to find engine by pathPiotr Sarnacki2010-12-091-0/+19
| |
| * Rake tasks for managing database while development and testing of enginesPiotr Sarnacki2010-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Some of the engines needs database. As engine needs to be run inside Rails application, migrations and other database operations are run from dummy application. To make that process simple I changed db tasks to look for migrations in both engine's and application's db/migrate directory. You can run all of the database tasks from test/dummy or directly from engine with prefix app, like: rake app:db:migrate rake app:db:migrate:redo
| * Application templates should work with HTTPS tooMikel Lindsaar2010-11-271-0/+9
| |
| * Do not create table_name_prefix method on isolated module if the method ↵Piotr Sarnacki2010-11-221-0/+19
| | | | | | | | | | | | already exists. Signed-off-by: José Valim <jose.valim@gmail.com>
* | Simplify remove_from_config.Emilio Tagua2010-11-191-9/+5
| |
* | Enable IdentityMap when generating new apps.Emilio Tagua2010-11-191-0/+12
| |