Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test that expected arrays to always be RubyArray.
Browse files Browse the repository at this point in the history
headius committed Jun 9, 2016
1 parent 167ece8 commit f90a818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/test/java/org/jruby/test/TestRaiseException.java
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@ public void testRubyExceptionTraceIncludesJavaPart() throws Exception {

boolean found_each = false;
for ( StackTraceElement element : trace ) {
if ( "each".equals( element.getMethodName() ) && "org.jruby.RubyArray".equals(element.getClassName()) ) {
if ( "each".equals( element.getMethodName() ) && element.getClassName().startsWith("org.jruby.RubyArray") ) {
if ( found_each ) {
fail("duplicate " + element + " in : \n" + fullTrace);
}

0 comments on commit f90a818

Please sign in to comment.