public static interface SpannedSubject.RubyText
Modifier and Type | Method | Description |
---|---|---|
SpannedSubject.AndSpanFlags |
withTextAndPosition(String text,
int position) |
Checks that at least one of the matched spans has the expected
text . |
SpannedSubject.AndSpanFlags withTextAndPosition(String text, @Position int position)
text
.text
- The expected text.position
- The expected position of the text.SpannedSubject.WithSpanFlags
object for optional additional assertions on the flags.