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

strange test suite requires #5

Closed
voxik opened this issue Mar 8, 2012 · 0 comments
Closed

strange test suite requires #5

voxik opened this issue Mar 8, 2012 · 0 comments

Comments

@voxik
Copy link
Contributor

voxik commented Mar 8, 2012

Hello,

Trying to execute the test suite from the installed gem, e.g.

$ pwd
/builddir/build/BUILD/rubygem-netrc-0.7/usr/share/gems/gems/netrc-0.7

The test suite fails:

$ testrb test
/builddir/build/BUILD/rubygem-netrc-0.7/usr/share/gems/gems/netrc-0.7/test/test_netrc.rb:61: warning: assigned but unused variable - l
/builddir/build/BUILD/rubygem-netrc-0.7/usr/share/gems/gems/netrc-0.7/test/test_netrc.rb:61: warning: assigned but unused variable - p
test/test_lex.rb: cannot load such file -- ../netrc/lib/netrc
test/test_netrc.rb: cannot load such file -- ../netrc/lib/netrc
test/test_parse.rb: cannot load such file -- ../netrc/lib/netrc

(btw the warnings are also ugly ;)) Could you please use some more natural paths, e.g. remove the "netrc" or abandon the paths completely:

sed -i "s|require '../netrc/lib/netrc'|require 'netrc'|" test/test_lex.rb
sed -i "s|require '../netrc/lib/netrc'|require 'netrc'|" test/test_netrc.rb
sed -i "s|require '../netrc/lib/netrc'|require 'netrc'|" test/test_parse.rb

This would allow me to run the test suite easily such as:

$ testrb -Ilib test
@geemus geemus closed this as completed in bb8e322 Mar 9, 2012
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

2 participants