aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/deprecation_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* renames the :abort deprecation behaviour to :raiseXavier Noria2013-08-131-3/+3
| | | | That is a better name, thanks @jeremy.
* defines a new :abort deprecation behaviour that raisesXavier Noria2013-08-131-0/+16
| | | | See the CHANGELONG message in the patch for further details.
* Test that DeprecatedConstantProxy does not warn when accessing its classAkira Matsuda2013-01-231-0/+1
|
* Missing AS::Deprecation::DeprecatedObjectProxy testAkira Matsuda2013-01-231-0/+5
|
* deprecate `assert_blank` and `assert_present`.Yves Senn2013-01-051-3/+4
| | | | | They don't add any benefits over `assert object.blank?` and `assert object.present?`
* Make caller attribute in deprecation methods optionalAlexey Gaziev2012-10-301-1/+1
|
* Change ActiveSupport::Deprecation to class.Piotr Niełacny2012-09-131-56/+78
| | | | | | | | | | | | | | | | | | | | | | | | ActiveSupport::Deprecation is now a class rather than a module. You can get instance of ActiveSupport::Deprecation calling #instance method. ActiveSupport::Deprecation.instance But when you need to get new object od ActiveSupport::Deprecation you need to just call #new. @instance = ActiveSupport::Deprecation.new Since you can create a new object, you can change the version and the name of the library where the deprecator concerned. ActiveSupport::Deprecation.new('2.0', 'MyGem') If you need use another deprecator instance you can select it in the options of deprecate method. deprecate :method, :deprecator => deprecator_instance Documentation has been updated.
* extend ActiveSupport::Deprecation with self, allow other objects to ↵Robert Pankowecki2012-09-131-0/+127
| | | | | | | | | | extend/include it also. test local deprecation deprecator object Test ActiveSupport::Deprecation when included
* Add test for default silence and stderr deprecation behaviorsCarlos Antonio da Silva2012-04-281-0/+20
|
* Remove more references to Test::UnitRafael Mendonça França2012-01-061-1/+1
|
* Remove unneeded testsRafael Mendonça França2012-01-061-18/+0
|
* fixed failing tests of ActiveSupport for deprecation testRaghunadh2011-05-211-1/+1
|
* fix failure if behavior is not define and try use the defaultCyril Mougel2010-07-011-0/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add the possibility to have several behaviors in AS::Deprecation.José Valim2010-07-011-0/+13
|
* Modify backtrace test to take implementations with slightly different ↵Yehuda Katz2009-12-131-1/+1
| | | | backtrace output into consideration.
* Fix deprecating =-methods by using send [#2431 status:resolved]Michael Siebert2009-08-091-0/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rework testing extensions to reflect the recent miniunit upheavalJeremy Kemper2008-11-071-11/+13
|
* Remove direct TestCase mixins. Add miniunit compatibility.Jeremy Kemper2008-11-071-1/+1
|
* Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵Joshua Peek2008-06-031-0/+10
| | | | ActiveSupport [#238 state:resolved]
* Remove unnecessary DeprecatedInstanceVariable classPratik Naik2008-05-131-10/+0
|
* Add class to deprecate instance variablesPratik Naik2008-05-061-0/+10
| | | | | Add ActiveSupport::Deprecation::DeprecatedInstanceVariable class to deprecate instance variables of primitive types such as stings.
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* DeprecatedInstanceVariable#inspect doesn't warn since test/unit, error logs, ↵Jeremy Kemper2006-12-201-0/+4
| | | | | | and others use it for diagnostics. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: silence warnings when reporting test errors.Jeremy Kemper2006-12-171-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extend deprecate so that alternatives can be specified via the deprecationJamis Buck2006-10-241-0/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_deprecated returns result of blockJeremy Kemper2006-09-151-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_deprecated matches any warning caught in blockJeremy Kemper2006-09-151-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* silenced writerJeremy Kemper2006-09-041-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4978 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Quiet while testing, you.Jeremy Kemper2006-09-041-5/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* get deprecation methods and callers straightJeremy Kemper2006-09-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add silencing to deprecations; avoid self-scolding.Nicholas Seckar2006-08-141-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New dependencies implementationNicholas Seckar2006-08-081-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include called method in instance variable deprecation warning.Jeremy Kemper2006-08-081-3/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't warn when the deprecated ivar proxy is instantiated.Jeremy Kemper2006-08-071-4/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* DeprecatedInstanceVariableProxy stand-in for @request, @attributes, and friends.Jeremy Kemper2006-08-051-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: easier to work with warning behavior as procs; default ↵Jeremy Kemper2006-08-011-70/+45
| | | | | | behaviors for each environment so users needn't update env.rb; and testing pleasure with assert_deprecated, assert_not_deprecated. Test prints to , dev logs, production ignores. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Initial Version of Deprecation for Rails[Koz]Michael Koziarski2006-07-271-0/+85
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de