#11 ✓resolved
bahuvrihi

Caller format causes test failures on JRuby

Reported by bahuvrihi | April 24th, 2008 @ 08:34 AM | in Tap 0.10.0

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.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A framework for making configurable, file-based tasks and workflows.

People watching this ticket

Tags

Pages