aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/rails_info_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add JSON support to rails properties route (`/rails/info/properties`).Yoshiyuki Hirano2018-11-071-0/+12
| | | | | | | | | | | | | | | | | Added json format, like this: { "Rails version": "6.0.0.alpha", "Ruby version": "2.5.1-p57 (x86_64-darwin17)", "RubyGems version": "2.7.6", "Rack version": "2.0.6", "JavaScript Runtime": "Node.js (V8)", "Middleware": ["Rack::Sendfile", "ActionDispatch::Static", "ActionDispatch::Executor", "ActiveSupport::Cache::Strategy::LocalCache::Middleware", "Rack::Runtime", "Rack::MethodOverride", "ActionDispatch::RequestId", "ActionDispatch::RemoteIp", "Sprockets::Rails::QuietAssets", "Rails::Rack::Logger", "ActionDispatch::ShowExceptions", "WebConsole::Middleware", "ActionDispatch::DebugExceptions", "ActionDispatch::Reloader", "ActionDispatch::Callbacks", "ActiveRecord::Migration::CheckPending", "ActionDispatch::Cookies", "ActionDispatch::Session::CookieStore", "ActionDispatch::Flash", "ActionDispatch::ContentSecurityPolicy::Middleware", "Rack::Head", "Rack::ConditionalGet", "Rack::ETag", "Rack::TempfileReaper"], "Application root": "/path/to/app", "Environment": "development", "Database adapter": "sqlite3", "Database schema version": 0 }
* Replace `assert !` with `assert_not`Daniel Colson2018-04-191-1/+1
| | | | | This autocorrects the violations after adding a custom cop in 3305c78dcd.
* Remove needless setup from `InfoTest`yuuji.yaginuma2017-10-071-13/+0
| | | | | | The `abstract_unit` loads `rails/all`. Therefore, `Rails` is definitely defined. Also, since `Info` is autoloaded, do not need to explicitly load the file. https://github.com/rails/rails/blob/3ede539357acc91e377611cea9dd5f30678e7b2a/railties/lib/rails.rb#L29
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Define path with __dir__bogdanvlviv2017-05-231-1/+1
| | | | | | ".. with __dir__ we can restore order in the Universe." - by @fxn Related to 5b8738c2df003a96f0e490c43559747618d10f5f
* Privatize unneededly protected methods in Railties testsAkira Matsuda2016-12-241-1/+1
|
* improve error message when include assertions failMichael Grosser2016-09-161-2/+2
| | | | | | assert [1, 3].includes?(2) fails with unhelpful "Asserting failed" message assert_includes [1, 3], 2 fails with "Expected [1, 3] to include 2" which makes it easier to debug and more obvious what went wrong
* Add three new rubocop rulesRafael Mendonça França2016-08-161-2/+2
| | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* applies new string literal convention in railties/testXavier Noria2016-08-061-12/+12
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Remove unused codeRafael Mendonça França2014-09-251-12/+1
|
* remove unnused method from testFabian Rodriguez2014-06-111-10/+0
|
* Add a test case for comparing Rails versionsSam Ruby2013-05-031-0/+5
| | | | https://github.com/rails/rails/commit/558d402472b49c4c99bf6753d341d7aef2e25dd4
* Fix test: ActiveSupport.version is returning now a Gem::Version instead of a ↵Guillermo Iguaran2013-03-241-1/+1
| | | | String
* remove references to *::VERSION, replace with *.versionCharlie Somerville2013-03-211-1/+1
|
* Updated/changed useless tr/gsubsJurriaan Pruis2012-04-031-1/+1
|
* Takes out stale methods relating to edge_rails_versionRizwan Reza2010-05-161-21/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Just use abstract_unitJeremy Kemper2009-11-141-12/+1
|
* Pull middleware for Rails info from the initializer instead of ActionControllerJoshua Peek2009-09-261-4/+4
|
* Railties test helpers need to activate rack gemJoshua Peek2009-09-011-0/+3
|
* Get Railties passing againYehuda Katz2009-05-161-0/+2
|
* Improve tests and code for Rails::InfoController and Rails::Info [#2411 ↵Manfred Stienstra2009-04-071-1/+16
| | | | | | | | | | state:resolved] - Refactor Rails::InfoController tests. - Return forbidden status from the InfoController for remote requests instead of a 500. - Add tests for displaying middleware in Rails::Info. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Rename Rails::Info.components to frameworksJeremy Kemper2008-11-241-5/+5
|
* Rails Edge info returns the latest git commit hash [#36 state:resolved]Francesc Esplugas2008-04-221-38/+32
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* misc doc fixes + Add ActiveResource to Rails::Info. Closes #8741, #9008, ↵Rick Olson2007-07-251-0/+7
| | | | | | #9089 [kampers] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* railties testsJeremy Kemper2006-09-031-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Railties: info tests passingJeremy Kemper2006-08-291-3/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rename Version constant to VERSION. Closes #2802.Marcel Molina2005-11-171-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make use of silence_stderr in script/lighttpd, script/plugin, and Rails::InfoSam Stephenson2005-11-071-11/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move info.rb to rails_info.rb and load Rails::Info after initializationSam Stephenson2005-11-051-0/+73
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de