aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/concern_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* use public Module#include instead of send :includeyuuji.yaginuma2016-11-271-1/+1
| | | | Follow up to #18767
* 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
* code gardening: removes redundant selfsXavier Noria2016-08-081-1/+1
| | | | | | | | | A few have been left for aesthetic reasons, but have made a pass and removed most of them. Note that if the method `foo` returns an array, `foo << 1` is a regular push, nothing to do with assignments, so no self required.
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-2/+2
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Fix for #20489 - ActiveSupport::Concern#class_methods affects parent classesKristijan Novoselic2015-06-121-0/+25
|
* Use public Module#include, in favor of https://bugs.ruby-lang.org/issues/8846robertomiranda2015-01-311-5/+5
| | | | ref: https://github.com/rails/rails/pull/18763#issuecomment-72349769
* Introduce Concern#class_methods and Kernel#concernJeremy Kemper2014-02-231-2/+8
|
* remove useless duplication in include testDamien Mathieu2013-07-221-4/+0
|
* remove duplication in testMarat Kazbekov2013-07-181-6/+0
|
* Raise when multiple included blocks are definedMike Dillon2013-05-161-0/+14
|
* use AS::TestCase as the base classAaron Patterson2012-01-051-1/+1
|
* Deprecate InstanceMethods namespace handling in ActiveSupport::Concern.José Valim2011-11-211-5/+2
| | | | This avoids the unnecessary "yo dawg, I heard you like include, so I put a module that includes your module when it is included" approach when building extensions.
* AS::Concern redefines "include" to lazy include modules as dependenciesJoshua Peek2009-05-291-3/+3
|
* AS::Concern includes InstanceMethods module if it existsJoshua Peek2009-05-291-4/+13
|
* Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵Joshua Peek2009-05-281-0/+88
"included" block DSL into separate modules. But, unify both approaches under AS::Concern.