aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
...
* remove uncommented railties boot_test.rbYves Senn2013-02-211-20/+0
|
* run the load_structure test in the test environmentTerence Lee2013-02-211-3/+10
|
* test DATABASE_URL without database.yml aroundTerence Lee2013-02-211-0/+2
|
* Fix rake routes output in railties testCarlos Antonio da Silva2013-02-191-2/+4
|
* Revert "Deprecate the `eager_load_paths` configuration"Andrew White2013-02-193-30/+38
| | | | | | | | | | | Because of the possibility of lib being unintentionally eager loaded it's been agreed that we'll leave autoload paths and eager load paths separate for Rails 4.0. This reverts commit 0757b3388ffe4f44b60de950d40e18ef05055931. Conflicts: railties/CHANGELOG.md
* editorial tweaksXavier Noria2013-02-191-1/+1
|
* Use strip_heredoc in the tests as well.Steve Klabnik2013-02-181-5/+6
| | | | Thanks @sikachu. :sweat_smile:
* Add message when you have no routes defined.Steve Klabnik2013-02-181-0/+15
| | | | | | Print a message in both `rake routes` and at GET "/rails/info/routes" that lets you know you have no routes defined, as well as linking to the Rails Guide on the topic.
* Gist URLs are now namespacedAkira Matsuda2013-02-181-3/+3
| | | | see: https://github.com/blog/1406-namespaced-gists
* Added notice message for destroy method in scaffoldRahul P. Chaudhari2013-02-101-0/+1
|
* --no-rc in the railties testsAkira Matsuda2013-02-012-2/+2
| | | | so that the tester's local .railsrc file does not affect the test results
* Remove BestStandardsSupport middlewareGuillermo Iguaran2013-01-292-32/+1
|
* Merge pull request #8303 from jeremywrowe/masterRafael Mendonça França2013-01-251-0/+5
|\ | | | | | | | | | | | | Fixes improper database name when creating a new rails app with a '.' Conflicts: railties/CHANGELOG.md
| * Fixes improper database name when a '.' is included while creating a new railsJeremy W. Rowe2013-01-161-0/+5
| | | | | | | | | | | | application. EG: `rails new something.awesome.com` Conflicts: railties/CHANGELOG.md
* | Deprecate the `eager_load_paths` configurationAndrew White2013-01-243-38/+30
| | | | | | | | | | | | | | | | | | | | Since the default in Rails 4.0 is to run in 'threadsafe' mode we need to eager load all of the paths in `autoload_paths` so we alias `eager_load_paths` to it. This may have unintended consequences if you have added 'lib' to `autoload_paths` such as loading unneeded code or code intended only for development and/or test environments. If this applies to your application you should thoroughly check what is being eager loaded.
* | Revert "Set the default timezone after the initialization since the ↵Carlos Antonio da Silva2013-01-221-11/+1
| | | | | | | | | | | | configuration" This reverts commit 39374aa925a7d670b039c0c0c9aa9f4aef19466b.
* | Merge pull request #8557 from timraymond/add_back_engines_and_deprecateRafael Mendonça França2013-01-221-0/+6
|\ \ | | | | | | | | | | | | | | | | | | Adding Back Rails::Engine::Railties#engines Conflicts: railties/CHANGELOG.md
| * | Adding Back Rails::Engine::Railties#enginesTim Raymond2013-01-031-0/+6
| | | | | | | | | | | | | | | Removing it breaks functionality with gems such as Thinking Sphinx. This restores it with a deprecation warning. Closes #8551
* | | Fix asset_path in mounted enginePiotr Sarnacki2013-01-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Historically serving assets from a mountable engine could be achieved by running ActionDispatch::Static as a part of engine middleware stack or to copy assets prefixed with an engine name. After introduction of assets pipeline this is not needed as all of the assets are served or compiled into main application's assets. This commit removes the obsolete line making asset_path always generate paths relative to the root or config.relative_url_root if it's set. (closes #8119)
* | | Restore and adapt the implementation reverted atRafael Mendonça França2013-01-191-0/+48
| | | | | | | | | | | | | | | | | | https://github.com/rails/rails/commit/cc1c3c5be061e7572018f734e5239750ab449e3f Now instead of raise, we log by default in development and test
* | | script => binAkira Matsuda2013-01-181-6/+6
| |/ |/|
* | allow :dirs option for .enumerateBrian D. Burns2013-01-151-0/+39
| | | | | | | | | | | | Allows custom rake tasks to be defined using: SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
* | Account for ignored cookie set by turbolinksNick Reed2013-01-141-6/+6
| |
* | Add regression test to #8907Rafael Mendonça França2013-01-141-0/+31
| |
* | More consistent quotes in scaffold generatorPavel Pravosud2013-01-111-1/+1
| |
* | Include jbuilder by default and rely on its scaffold generator to show json ↵David Heinemeier Hansson2013-01-102-24/+1
| | | | | | | | API. The default scaffold will now just create HTML if the user actively opts out of jbuilder
* | remove performance tests from the default stackYves Senn2013-01-102-28/+0
| |
* | extract PerformanceTest into rails-performance_tests gemYves Senn2013-01-101-12/+0
| |
* | fire a notification when the request stops / startsAaron Patterson2013-01-091-0/+71
| |
* | Revert "unpermitted params" exception -- it's just not going to work. See ↵David Heinemeier Hansson2013-01-081-48/+0
| | | | | | | | the discussion on https://github.com/rails/strong_parameters/pull/75.
* | Fix readme testsCarlos Antonio da Silva2013-01-071-2/+2
| | | | | | | | Related to the change introduced in 6cf47c533d7d6784d34fc31406a335555e0c32b8.
* | doc/README_FOR_APP is no longer generatedXavier Noria2013-01-081-1/+0
| |
* | Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵Jeremy Kemper2013-01-069-40/+57
| | | | | | | | Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
* | Move config.filter_parameters to you own initializer fileRafael Mendonça França2013-01-051-2/+2
| | | | | | | | This is very rarely changed and does not deserve to be in application.rb
* | Assert config.filter_parameters should be able to be set in a initializerRafael Mendonça França2013-01-051-0/+10
| |
* | Make sure assets is disable when --skip-sprockets is usedRafael Mendonça França2013-01-051-1/+2
| |
* | config.assets.enabled is now true by defaultDavid Heinemeier Hansson2013-01-051-1/+0
| |
* | Remove warning "ambiguous first argument"Carlos Antonio da Silva2013-01-051-1/+1
| |
* | Rename the configuration to raise_on_unpermitted_parametersRafael Mendonça França2013-01-051-9/+9
| | | | | | | | Also changed the exception to UnpermittedParameters
* | Ensure that raise_on_unexpected_params configuration will workRafael Mendonça França2013-01-051-0/+48
| |
* | Merge pull request #8633 from mykola-kyryk/issue_8628Rafael Mendonça França2013-01-042-0/+18
|\ \ | | | | | | | | | | | | | | | Allow environment name to start with a substring of the default environment names. Fixes #8628
| * | This commit fixes issue #8628Mykola Kyryk2013-01-042-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow environment name to start with a substring of the default environment names. For example: tes, pro, prod, dev, devel, etc. Fixing identation. Adding test for Rails::Console.parse_arguments method. Fix issue 8628 for Rails::DBConsole.
* | | fix failing test broken in 15fb7889c5566ddade1d8f74f49bbbc1c0be6057Akira Matsuda2013-01-051-1/+1
|/ /
* / Set the default timezone after the initialization since the configurationRafael Mendonça França2013-01-041-1/+11
|/ | | | | | now lives in the application initializers. Fix #8711
* Merge pull request #8705 from amparo-luna/change_update_attributes_to_updateGuillermo Iguaran2013-01-032-3/+3
|\ | | | | Rename update_attributes method to update
| * Updating default application templates to use update instead of ↵Amparo Luna + Guillermo Iguaran2013-01-032-3/+3
| | | | | | | | update_attributes
* | test PATCH method for update action in generated scaffold controller test ↵Akira Matsuda2013-01-032-4/+4
| | | | | | | | rather than PUT
* | Restore original remote_ip algorithm.Andre Arko2013-01-021-1/+1
|/ | | | | | | | | | | Proxy servers add X-Forwarded-For headers, resulting in a list of IPs. We remove trusted IP values, and then take the last given value, assuming that it is the most likely to be the correct, unfaked value. See [1] for a very thorough discussion of why that is the best option we have at the moment. [1]: http://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection/ Fixes #7979
* Merge pull request #8666 from mekishizufu/fix_lambdasSantiago Pastorino2012-12-312-2/+2
|\ | | | | Fix usage of lambda as a Rack endpoint
| * Fix usage of lambda as a Rack endpointJiri Pospisil2012-12-312-2/+2
| | | | | | | | The response body needs to respond_to? :each.