Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative filepaths to tests #20

Open
travisjeffery opened this issue Sep 2, 2011 · 0 comments
Open

Relative filepaths to tests #20

travisjeffery opened this issue Sep 2, 2011 · 0 comments

Comments

@travisjeffery
Copy link

Currently an absolute path is output, i.e.,

testdrb -Itest test/unit/break_test.rb

Loaded suite break_test.rb
Started
........E....................
Finished in 2.139565 seconds.

  1) Error:
test_should_have_site_id_set(BreakTest):
RuntimeError: 
    /test/unit/break_test.rb:22:in `test_should_have_site_id_set'
    activesupport (2.3.14) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
    activesupport (2.3.14) lib/active_support/testing/setup_and_teardown.rb:62:in `run'

#<DRb::DRbUnknown:0x1e314e8>

but I expect a relative path, i.e.,

ruby -Itest test/unit/break_test.rb

Loaded suite test/unit/break_test
Started
........E.....................
Finished in 1.926428 seconds.

  1) Error:
test_should_have_site_id_set(BreakTest):
RuntimeError: 
    test/unit/break_test.rb:22:in `test_should_have_site_id_set'
    activesupport (2.3.14) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
    activesupport (2.3.14) lib/active_support/testing/setup_and_teardown.rb:62:in `run'

30 tests, 72 assertions, 0 failures, 1 errors

Note the test/unit/break_test.rb vs. /test/unit/break_test. I even seen in a test of your's for Spork & Rspec you check to make sure the paths are relative. So would it be possible to have something similar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant