Commit 3d8edf7
committed
Added a test for Array#flatten that passes in 1.8.7, but fails in 1.9.2 to demonstrate a change in behaviour between the two versions :-
Array#flatten does not call to_ary on an elements if element does not respond to to_ary FAILED
Expected to not get NotNoMethodError
I'd like to confirm whether this change in behaviour is intentional.
See [this Ruby mailing list thread](http://www.ruby-forum.com/topic/450307) and [this Mocha ticket](http://floehopper.lighthouseapp.com/projects/22289/tickets/70) for more details.1 parent 7dbeac1 commit 3d8edf7
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
101 | 114 | | |
102 | 115 | | |
103 | 116 | | |
| |||
0 commit comments