Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Caller format causes test failures on JRuby

#11

The caller format received by file_test_root in 'lib/test/file_methods' differs between Ruby and JRuby; in JRuby the full path is sometimes printed out for the calling file:

Ruby:

./test/app_test.rb:10

JRuby:

/Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:10:in `/Users/simonchiang/Documents/Gems/tap/./test/app_test.rb'

This causes the file_test_root to be assessed incorrectly. The existing algorithm should work, but the regexp to chop off 'in...' part is faulty.

Reported by bahuvrihi · April 24th, 2008 @ 08:34 AM

State: resolved
Milestone: Tap 0.10.0
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi
    • Assigned user set to bahuvrihi
    • State changed from new to resolved

    Fixed Regexp

    April 24th, 2008 @ 08:35 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.