aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
Commit message (Collapse)AuthorAgeFilesLines
* Default I18n.enforce_available_locales to trueCarlos Antonio da Silva2013-12-171-4/+38
| | | | | | | | | | | | We will default this option to true from now on to ensure users properly handle their list of available locales whenever necessary. This option was added as a security measure and thus Rails will follow it defaulting to secure option. Also improve the handling of I18n config options in its railtie, taking the new enforce_available_locales option into account, by setting it as the last one in the process. This ensures no other configuration will trigger a deprecation warning due to that setting.
* Add mailer previews feature based on mail_view gemAndrew White2013-12-171-0/+388
|
* Regression test for load_structure and clone_structureArthur Neves2013-12-141-2/+4
|
* Rename tokens.yml to secrets.ymlGuillermo Iguaran2013-12-121-3/+3
|
* Add test for custom tokens stored in config/tokens.ymlGuillermo Iguaran2013-12-121-0/+13
|
* Replace config.secret_key_base with secrets.secret_key_base in testGuillermo Iguaran2013-12-121-1/+1
|
* Load secret_key_base from tokens.yml, fallback to config.secret_key_baseGuillermo Iguaran2013-12-121-3/+23
|
* Assert the singleton instead of to truthy/falsyRafael Mendonça França2013-12-051-4/+4
| | | | | This will avoid false positives where caching? is nil and should be false
* Add tests to cache_template_loading when an engine loaded Action ViewRafael Mendonça França2013-12-051-0/+14
| | | | | | | | before the application This test is a regression test to b068e20b35797aa6deaa377a48c990759734f515 that changed the load order of Action View initializers.
* set `i18n.enforce_available_locales` before `i18n.default_locale`.Yves Senn2013-12-051-0/+11
|
* Make salt argument required for message verifierRafael Mendonça França2013-12-041-5/+5
|
* Test if two different verifiers don't share the same secretRafael Mendonça França2013-12-041-2/+12
|
* Don't need to use a controller to test the verifierRafael Mendonça França2013-12-041-9/+3
|
* No need to configure saltsRafael Mendonça França2013-12-041-21/+1
|
* Make possibile to get different message verifiersRafael Mendonça França2013-12-041-0/+10
|
* Rename verifier to message_verifierRafael Mendonça França2013-12-041-3/+3
|
* Add application verifierRafael Mendonça França2013-12-041-0/+41
| | | | | | | | It is an application global verifier that can be used to generate and verify signed messages. See the documentation of ActiveSupport::MessageVerifier for more information.
* Merge pull request #12365 from jbaudanza/reorderGuillermo Iguaran2013-12-011-1/+1
|\ | | | | Move Rack::Cache after ActionDispatch::Static in the middleware stack
| * Move Rack::Cache after AD::Static in the stackJonathan Baudanza2013-09-251-1/+1
| |
* | Build fix for new routing inspector changesArun Agrawal2013-11-221-2/+2
| | | | | | | | | | | | Broken by 6701b4cf41f6f3d9cfc6a93715acbf852d1e468e
* | Merge pull request #12975 from sbagdat/fix-for-rake-routesYves Senn2013-11-211-2/+2
|\ \ | | | | | | Fix for routes task
| * | Fix for routes taskSıtkı Bağdat2013-11-211-2/+2
| | | | | | | | | | | | This commit fixes formatting issue for `rake routes` task, when a section is shorter than a header.
* | | replace U+00A0 with whitespaceDmitriy Budnik2013-11-211-1/+1
|/ /
* | added test cases to find notes in a file with .builder extensionKuldeep Aggarwal2013-11-171-1/+3
| |
* | Build fix for ruby 1.9.3 syntaxArun Agrawal2013-11-161-1/+1
| |
* | Instrument each load config initializerPaul Nikitochkin2013-11-161-0/+13
| | | | | | | | | | | | In order to simplify profiling loading of initializers, added instument for tracking load config initializer event from `config/initializers`
* | Merge pull request #12695 from mikepack/allow_pathnamesYves Senn2013-11-111-0/+14
|\ \ | | | | | | Allow Pathnames to be added to eager load paths
| * | Allow Pathnames to be added to eager load pathsMike Pack2013-11-111-0/+14
| | |
* | | Make static error pages responsiveEtienne Lemay2013-11-111-1/+1
|/ /
* | BACKTRACE environment variable to show unfiltered backtraces.Yves Senn2013-11-041-5/+34
| | | | | | | | | | | | | | | | | | | | | | We used to support the `BACKTRACE` environment variable but when we switched to MiniTest it got removed: f9382cd7948 This commit adds back the functionality to show the unfiltered backtrace when needed. This also works when you run your tests with `rake`: * `BACKTRACE=1 bin/rake test` * `BACKTRACE=1 ruby -Itest ...`
* | More Warnings removed for ruby trunkArun Agrawal2013-11-013-8/+8
| | | | | | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
* | Expose MiddlewareStack#unshift to environment configuration.Ben Pickles2013-10-091-0/+6
| |
* | Merge branch 'fix-ip-spoof-errors' of https://github.com/tamird/rails into ↵Andrew White2013-09-301-0/+10
|\ \ | |/ |/| | | tamird-fix-ip-spoof-errors
| * make sure both headers are set before checking for ip spoofingTamir Duberstein2013-06-041-0/+10
| |
* | Merge pull request #12216 from suginoy/a-anRafael Mendonça França2013-09-132-3/+3
|\ \ | | | | | | Fix typos: the indefinite articles(a -> an).
| * | Fix typos: the indefinite articles(a -> an)SUGINO Yasuhiro2013-09-132-3/+3
| | |
* | | Remove BasicRendering testsJosé Valim2013-09-091-62/+0
|/ /
* | Merge pull request #11912 from jonkessler/respond-to-signature-fixesRafael Mendonça França2013-08-311-0/+7
|\ \ | | | | | | Update Rails::Railtie::Configuration and ActionDispatch::Response#respond_to? to accept include_private argument
| * | update Rails::Railtie::Configuration and ↵Jon Kessler2013-08-161-0/+7
| | | | | | | | | | | | ActionDispatch::Response#respond_to? to accept include_private argument
* | | Extend basic rendering, test it in railtiesŁukasz Strzałkowski2013-08-251-0/+62
| | |
* | | Missing AV requires in railties testsŁukasz Strzałkowski2013-08-251-0/+1
|/ /
* | fix build error caused by #11900.Yves Senn2013-08-151-1/+1
| |
* | Adding LESS to rake notesJosh Crowder2013-08-151-0/+2
| |
* | Rails.logger should have level specified by config.log_level. Max Shytikov2013-07-301-0/+8
| | | | | | Fix bug when log level of Rails.logger (which was set via config.logger) does not match the config.log_level.
* | Revert "Match Dev/Prod parity for Index Page"Piotr Sarnacki2013-07-221-1/+1
| | | | | | | | | | | | | | | | Showing welcome page in production can expose information, which should not be visible on production if people don't override the default root route. This reverts commit b0caea29c2da9f4c8bb958019813482da297067d.
* | Merge pull request #11514 from schneems/schneems/dev-prod-parity-indexPiotr Sarnacki2013-07-221-1/+1
|\ \ | | | | | | Match Dev/Prod parity for Index Page
| * | Match Dev/Prod parity for Index Pageschneems2013-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | With Rails 4 the default index page was moved from a static file `index.html` inside the `public/` folder to an internal controller/view inside of the railties gem. This was to allow use of erb in the default index page and to remove the requirement that new apps must delete a static file to make their index pages work. While this was a good change, the functionality was unexpected to developers who wish to get their apps running in production ASAP. They will create a new app `rails new my app`, start a server to verify it works, then immediately deploy the app to verify that it can start working in production. Unfortunately locally they see a page when they visit `localhost:3000` when they visit their production app they get an error page. We initially anticipated this problem in the original pull request, but did not properly anticipate the severity or quantity of people who would like this functionality. Having a default index page serves as an excellent litmus test for a passed deploy on default apps, and it is very unexpected to have a page work locally, but not on production. This change makes the default index page available in production if the developer has not over-written it by defining their own `root` path inside of routes.
* | | Clear named routes when routes.rb is reloadedAndrew White2013-07-211-0/+45
|/ / | | | | | | | | | | | | | | Fix an issue where Journey was failing to clear the named routes hash when the routes were reloaded and since it doesn't overwrite existing routes then if a route changed but wasn't renamed it kept the old definition. This was being masked by the optimised url helpers so it only became apparent when passing an options hash to the url helper.
* | Added CheckPending middleware in defaultArun Agrawal2013-07-151-0/+4
| | | | | | | | | | | | | | | | | | As this middleware comes by default in a new rails app Added test to check omit for CheckPending when Active Record is not included.
* | No need to add config for x_sendfile_headerArun Agrawal2013-07-151-2/+0
| | | | | | | | Rack::Sendfile is loaded by default now