respond_to? returns true for :to_ary, but call of :to_ary raises NoMethodError #63

Merged
merged 2 commits into from Jun 11, 2011

Conversation

Projects
None yet
3 participants
@Mik-die
Contributor

Mik-die commented Jun 10, 2011

fixed bug, when respond_to? returns true for method :to_ary, and then, when this method calls, raise NoMethodError. For example, at this point: https://github.com/rails/rails/blob/v3.0.8/activesupport/lib/active_support/core_ext/array/wrap.rb#L43

@dchelimsky

This comment has been minimized.

Show comment Hide comment
@dchelimsky

dchelimsky Jun 10, 2011

Member

Please add a spec that fails without this change and passes with it.

Member

dchelimsky commented Jun 10, 2011

Please add a spec that fails without this change and passes with it.

justinko added a commit that referenced this pull request Jun 11, 2011

Merge pull request #63 from Mik-die/patch-1
respond_to? returns true for :to_ary, but call of :to_ary raises NoMethodError

@justinko justinko merged commit b101687 into rspec:master Jun 11, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment