[DRE-maint] Bug#784323: gem2deb: generates broken debian/ruby-tests.rake by default

Antonio Terceiro terceiro at debian.org
Tue May 5 15:11:28 UTC 2015


On Tue, May 05, 2015 at 01:30:06PM +0200, Lucas Nussbaum wrote:
> Package: gem2deb
> Version: 0.14
> Severity: minor
> 
> Hi,
> 
> By default, gem2deb generates a debian/ruby-tests.rake that looks like:
> Gem2Deb::Rake::TestTask.new do |t|
>    t.test_files = FileList['test/**/*_test.rb']
> end
> 
> This breaks with net-ssh, that names its tests test_*.rb
> 
> It could also make sense to set "libs" to something sensible.
> 
> So maybe it should generate something such as:
> 
> Gem2Deb::Rake::TestTask.new do |t|
>    t.libs = ["lib", "test"]

the install location under debian/$pkg is already added to the
$LOAD_PATH by the test runner, so you don't need/want lib/ there. But
adding test/ is indeed useful.

>    t.test_files = FileList['test/**/*_test.rb'] FileList['test/**/test_*.rb']
> end

Yes. I just pushed a fix for this to the git repository.

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20150505/a8bfad1d/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list