draper/spec/draper
Igor Springer 4439ed8e84
fix: Check only object's private method when preventing delegati… (#875)
https://github.com/drapergem/draper/pull/849 introduced a valid fix to prevent calling object's public method when a decorator overwrites it through a private one. There is one caveat, though. `private_methods` methods has `all` parameter set to `true` by default (https://ruby-doc.org/core-2.7.0/Object.html#method-i-private_methods)`. As a result all private methods are returned, instead of only the ones defined on the object.

This commit fixes the above issue by setting the `all` parameter to `false`.
2020-02-11 10:47:49 -06:00
..
decoratable Check for `decorated?` before using `source` in #== 2013-01-18 10:05:13 +00:00
query_methods feat: Include ORM associations in CollectionDecorator (#845) 2019-02-25 10:44:19 -06:00
view_context Fix failing specs re Rails 5.1 (#800) 2017-05-05 10:28:28 -05:00
collection_decorator_spec.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
configuration_spec.rb feat: Include ORM associations in CollectionDecorator (#845) 2019-02-25 10:44:19 -06:00
decoratable_spec.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
decorated_association_spec.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
decorates_assigned_spec.rb update rspec syntax to the new one 2016-06-09 18:49:42 -03:00
decorator_spec.rb fix: Check only object's private method when preventing delegati… (#875) 2020-02-11 10:47:49 -06:00
draper_spec.rb Add SimpleCov for code coverage analysis (#851) 2019-03-18 08:21:35 -05:00
factory_spec.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
finders_spec.rb update rspec syntax to the new one 2016-06-09 18:49:42 -03:00
helper_proxy_spec.rb update rspec syntax to the new one 2016-06-09 18:49:42 -03:00
lazy_helpers_spec.rb update rspec syntax to the new one 2016-06-09 18:49:42 -03:00
query_methods_spec.rb Add preservation of decorator options on QueryMethods (#868) 2020-01-03 15:17:34 -06:00
undecorate_chain_spec.rb Add undecorate_chain feature 2017-01-16 00:47:54 +03:00
undecorate_spec.rb Draper.undecorate safely undecorates any object 2014-06-01 09:17:47 -07:00
view_context_spec.rb Clean view context when controller changes (#799) 2017-05-08 09:23:13 -05:00
view_helpers_spec.rb Revamp specs 2013-01-17 12:47:25 +00:00