geemus/netrc — Issue #5: strange test suite requires
Author: voxik
Created: 2012-03-08 14:09:11+00:00
State: open

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
```