Skip to content

Commit

Permalink
Merge pull request #1083 from robertpanzer/fix-1082
Browse files Browse the repository at this point in the history
Fixes #1082. Return empty list in DescriptionList.getBlocks() instead…
  • Loading branch information
robertpanzer committed Feb 15, 2022
2 parents c521b1c + 9f554bd commit 21dca59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -9,6 +9,8 @@

import java.util.List;

import static java.util.Collections.emptyList;

public class DescriptionListImpl extends StructuralNodeImpl implements DescriptionList {

public DescriptionListImpl(IRubyObject delegate) {
Expand Down Expand Up @@ -39,7 +41,6 @@ public String convert() {

@Override
public List<StructuralNode> getBlocks() {
RubyArray rubyBlocks = (RubyArray) getRubyProperty("blocks");
return new RubyBlockListDecorator<>(rubyBlocks);
return emptyList();
}
}
Expand Up @@ -103,8 +103,7 @@ That::
and should continue here'''
listItem.description.text == '''list item should show bar
and should continue here'''
list.blocks.size() == list.items.size()
list.items[0].description.source == list.blocks[0].description.source
list.blocks.size() == 0
}

def 'it should be possible to get the raw text from a table cell'() {
Expand Down

0 comments on commit 21dca59

Please sign in to comment.