Skip to content

Commit

Permalink
Slightly modified the specs for Array#rindex to reproduce the same co…
Browse files Browse the repository at this point in the history
…ndition that exposed a bug in the previous implementation of IListOps.ReverseIndex
  • Loading branch information
nrk committed May 31, 2009
1 parent 76db817 commit e5497cf
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -29,7 +29,7 @@

it "does not fail when removing elements from block" do
sentinel = mock('sentinel')
ary = [0, 0, 1, 1, 3, 2, 1, sentinel]
ary = [0, 0, 1, 1, 3, 2, 1, sentinel, 4]

sentinel.instance_variable_set(:@ary, ary)
def sentinel.==(o) @ary.slice!(1..-1); false; end
Expand Down

0 comments on commit e5497cf

Please sign in to comment.