aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/module_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-131-1/+0
* Add :allow_nil option to delegate_missing_to; use in ActiveStorageMatt Tanous2019-05-231-0/+14
* Add separate test to ensure that `delegate` with `:private` option returns co...bogdanvlviv2018-02-281-6/+16
* add private: true option for ActiveSupport delegateTomas Valent2018-02-261-0/+57
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-1/+1
* Use respond_to test helpersDaniel Colson2018-01-251-9/+9
* Test for the new exception of delegate_missing_to (#30191)Anton Khamets2017-08-121-0/+8
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
* Merge pull request #29728 from kirs/frozen-activesupportMatthew Draper2017-07-091-0/+1
|\
| * Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
* | Fix warning: `*' interpreted as argument prefixRyuta Kamizono2017-07-061-2/+2
* | Merge pull request #29687 from k3rni/private-prefixed-delegateMatthew Draper2017-07-061-0/+38
|\ \ | |/ |/|
| * Use `map` in `delegate` so that actual prefixed method names are returned, if...Krzysztof Zych2017-07-051-0/+39
|/
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Update test names to match method nameT.J. Schuck2017-05-041-6/+6
* delegate_missing_to should fall back to superMatthew Draper2017-04-091-0/+22
* delegate_to_missing doesn't delegate private methodsMatthew Draper2017-04-091-0/+10
* Adjust `Module.parent_name` to work when frozen; fixes #27637Corey Ward2017-01-171-30/+0
* Constant look-up would no longer fall back to top-level constant since ruby 2.5Akira Matsuda2017-01-131-2/+2
* class Foo < Struct.new(:x) creates an extra unneeded anonymous classAkira Matsuda2017-01-131-1/+1
* assert_equal takes expectation firstAkira Matsuda2016-12-261-9/+9
* Remove deprecated method alias_method_chainAndrew White2016-11-141-215/+0
* Remove deprecated local_constantsAndrew White2016-11-131-10/+0
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-2/+2
* Add three new rubocop rulesRafael Mendonça França2016-08-161-3/+3
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-1/+0
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-3/+3
* modernizes hash syntax in activesupportXavier Noria2016-08-061-25/+25
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-35/+35
* Add test for `delegate_missing_to` where method doesn't existJon Moss2016-05-261-0/+8
* Add tests for keyword arg to: for Module#delegateYosuke Kabuto2016-05-251-0/+15
* Don't delegate to private methods of the targerRafael Mendonça França2016-05-241-0/+14
* Merge pull request #23930 from gsamokovarov/module-delegate-missing-toRafael Mendonça França2016-05-241-0/+22
|\
| * Introduce Module#delegate_missing_toGenadi Samokovarov2016-02-271-0/+22
* | Remove duplicated `test_` prefix [ci skip]Ryuta Kamizono2016-03-021-1/+1
* | Deprecate `Module.local_constants`yui-knk2016-03-011-1/+7
|/
* Fixing issue when delegating to methods named "block", "args", or "arg"Jake Bell2015-08-191-0/+15
* Deprecate alias_method_chain in favour of Module#prependKir Shatrov2015-03-221-95/+125
* Revert 88d08f2ec9f89ba431cba8d0c06ac9ebc204bbbbRafael Mendonça França2015-02-111-1/+1
* Delegation works with reserved words passed to `:to`Agis-2014-09-191-0/+11
* Fix confusing exception in ActiveSupport delegationVladimir Yarotsky2014-05-201-1/+1
* Remove warningRafael Mendonça França2014-01-161-2/+2
* define the delegate methods on one line. fixes #13724Aaron Patterson2014-01-161-0/+10
* Unused classes in AS testsAkira Matsuda2013-12-191-6/+0
* Only raise DelegationError if it's is the source of the exceptionAndrew White2013-07-111-0/+27
* Fixed test broken by local_constant_names Arun Agrawal2013-07-031-6/+0
* Move delegation error constant to inside ModuleCarlos Antonio da Silva2013-06-261-1/+1
* Add DelegationError class. Rasied by delegation to a nil objectSteve Faulkner2013-06-261-1/+1
* Module#delegate checks nilness rather that falsehood if :allow_nil is true, a...Xavier Noria2013-04-261-0/+31