net-ssh / net-scp

Pure Ruby implementation of the SCP protocol
http://github.com/delano/net-scp
MIT License
154 stars 63 forks source link

Fix tests for Ruby 1.9.2 #2

Closed Flameeyes closed 11 years ago

Flameeyes commented 13 years ago

Hi there!

We've hit issues in Gentoo with Ruby 1.9.2 because of "." not being in the default library path anymore. I've worked it around in our builds for now, but this change should make it more in-line with other Ruby packages and incidentally solves the issue as well.

HTH, Diego

delano commented 13 years ago

Thanks for the report. How are you running the tests?

I prefer to run them without using Rake. Does this work for you:

ruby -Ilib -Itest -rrubygems test/test_all.rb
Flameeyes commented 13 years ago

Okay alternative approach then ;)

What if I still made the Rakefile work as I did here but renamed test_all.rb to alltests.rb (so that it doesn' t get run by Rakefile) and fix that one to run on 1.9.2? That should cover both our and yours need alike...