aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
Commit message (Collapse)AuthorAgeFilesLines
* Added test for assets:precompile for index filesDmitry Vorotilin2012-05-011-0/+9
|
* Failing test for #6034Piotr Sarnacki2012-04-301-0/+20
|
* log which config format AR uses to connect withTerence Lee2012-04-031-0/+19
|
* test initializer logic for DATABASE_URL env varTerence Lee2012-04-031-0/+43
|
* Fix GH #5411. When precompiling, params method is undefined.kennyj2012-03-221-0/+12
|
* Fix GH #5435. db:structure:dump should be re-enable.kennyj2012-03-181-0/+12
|
* Now all the models need to explicitly declare the accessible attributesRafael Mendonça França2012-03-041-0/+1
|
* fix assets testSergey Nartimov2012-01-311-1/+1
|
* Add default charset config to ActionDispatchCarlos Antonio da Silva2012-01-171-0/+8
|
* Don't hardcode assets route skipped in route inspectorGuillermo Iguaran2012-01-151-0/+15
| | | | | | Conflicts: railties/lib/rails/application/route_inspector.rb
* No AS::TestCase here.José Valim2012-01-131-1/+1
|
* config.force_ssl should mark the session as secure.José Valim2012-01-131-0/+30
|
* Remove dead codeSantiago Pastorino2012-01-101-4/+0
|
* Rails initialization with initialize_on_precompile = false should set assets_dirSantiago Pastorino2012-01-101-0/+6
|
* Add ORIGINAL_FULLPATH to envPiotr Sarnacki2012-01-102-1/+37
| | | | | | | | | | | This behaves similarly to REQUEST_URI, but we need to implement it on our own because REQUEST_URI is not reliable. Note that since PATH_INFO does not contain information about trailing question mark, this is not 100% accurate, for example `/foo?` will result in `/foo` in ORIGINAL_FULLPATH
* Correctly display rack apps with dynamic constraints in RoutesInspectorPiotr Sarnacki2011-12-261-0/+17
| | | | | | | | | | | | | If you used dynamic constraint like that: scope :constraint => MyConstraint.new do mount RackApp => "/foo" end routes were not displayed correctly when using `rake routes`. This commit fixes it. If you want nice display of dynamic constraints in `rake routes` output, please just override to_s method in your constraint's class.
* just require things onceAaron Patterson2011-12-211-4/+2
|
* append puts the routes after the default, which causes a 404. instead use ↵Aaron Patterson2011-12-211-1/+1
| | | | prepend
* Move SubTestTask. Soften up tests.Jeremy Kemper2011-12-211-10/+7
|
* don't encode an UTF-8 encoded templateXu Pan2011-12-201-1/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename STRUCTURE to DB_STRUCTURE, update dump task description and add ↵Dieter Komendera2011-12-181-0/+8
| | | | simple testcase.
* Wait a full second so we have time for changes to propagateJosé Valim2011-12-161-0/+3
|
* Fix failing asset test.José Valim2011-12-161-1/+3
|
* Show detailed exceptions no longer returns true if the request is local in ↵José Valim2011-12-161-0/+1
| | | | production.
* Improve the specs on exceptions app.José Valim2011-12-161-1/+1
|
* Allow a custom exceptions app to set.José Valim2011-12-161-0/+14
|
* Fix diagnostics page for routing errors.José Valim2011-12-151-2/+13
|
* Clean up the cache before the request in case we are running in the ↵José Valim2011-12-153-6/+52
| | | | reload_classes_only_on_change schema.
* FileUpdateChecker should be able to handle deleted files.José Valim2011-12-131-0/+32
|
* Add config.file_watcher so developers can provide their own watchers (for ↵José Valim2011-12-131-3/+79
| | | | instance, hooking on fsevents).
* Merge pull request #3954 from bdurand/null_store_2José Valim2011-12-121-2/+2
|\ | | | | Add ActiveSupport::Cache::NullStore for testing and development
| * Add ActiveSupport::Cache::NullStore to expose caching interface without ↵Brian Durand2011-12-121-2/+2
| | | | | | | | actually caching for development and test environments.
* | Speed up development by only reloading classes if dependencies files changed.José Valim2011-12-122-1/+3
|/ | | | | | | | This can be turned off by setting `config.reload_classes_only_on_change` to false. Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading. Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
* Default relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"]. Fixes #3365Piotrek Okoński2011-12-121-0/+9
|
* Ensure that files that compile to js/css are not compiled by default with ↵Piotr Sarnacki2011-12-111-2/+8
| | | | | | | | `rake assets:precompile` This case was not tested and documentation was a bit confusing on that topic, so it was not obvious if current code works properly or not.
* Fix indentationPiotr Sarnacki2011-12-091-67/+67
|
* Allow to run migrations with given scope, with SCOPE=<scope>Piotr Sarnacki2011-12-091-0/+24
| | | | | | | | | | | Scope in migrations can be defined by adding suffix in filename, like: 01_a_migration.blog.rb. Such migration have blog scope. Scope is automatically added while copying migrations from engine, so if you want to revert all of the migrations from given engine, you can just run db:migrate with SCOPE, like: rake db:migrate SCOPE=blog
* Merge pull request #3908 from kennyj/should_use_default_charsetJosé Valim2011-12-081-2/+3
|\ | | | | Fix a failure in railties on ruby 1.8.x
| * Fix testcase an error on ruby 1.8.x.kennyj2011-12-091-2/+3
| | | | | | | | | | | | In Ruby 1.8.x, config.encoding sets $KCODE. Therefore, the possible values are UTF8, SJIS, or EUC. And, if we set SJIS, we'll has the error. Because some rails sources are written in utf-8 encoding.
* | Merge pull request #3888 from kennyj/should_use_default_charsetJosé Valim2011-12-081-0/+6
|\| | | | | Assign config.encoding to AD::Response.default_charset at the initialization time.
| * Assign config.encoding to AD::Response.default_charset at the initialization ↵kennyj2011-12-071-0/+6
| | | | | | | | time.
* | Moves migrations tests from railties/test/application/rake_test.rb to ↵Kazimierz Kiełkowicz2011-12-072-68/+85
| | | | | | | | railties/test/application/rake/migrations_test.rb
* | Move rake notes test to railties/test/application/rake/notes_test.rbKazimierz Kiełkowicz2011-12-071-0/+45
|/
* Split ShowExceptions responsibilities in two middlewares.José Valim2011-12-012-2/+4
|
* Allow rescue responses to be configured through a railtie.José Valim2011-12-012-21/+30
|
* Leave default_asset_host_protocol unsetJonathan del Strother2011-12-011-0/+22
| | | When default_asset_host_protocol is left as nil, it will use absolute protocols when a request is present, and relative protocols otherwise (eg in asset generation)
* fix exception page when template contains utf-8 and parameters contain utf-8lest2011-11-301-11/+30
|
* `run_test` method conflicts with newer minitest, so change the nameAaron Patterson2011-11-301-5/+5
|
* put backtrace_cleaner to envlest2011-11-281-4/+5
|
* Merge pull request #3747 from lest/middleware-loggerJosé Valim2011-11-251-0/+1
|\ | | | | middlewares should have configurable logger