carlhuda/bundler — Issue #1478: Generated gemspec can't find test files
Author: CodeGnome
Created: 2011-10-10 01:17:21+00:00
State: open

The generated gemspecs contain the following:

`git ls-files -- {test,spec,features}/*`.split("\n")

However, this produces gems with no test_files. In fact, some globbing issue (probably related to brace expansion) prevents it from generating an array even within irb itself:

`git ls-files -- {test,spec,features}/*`.split("\n")
=> ""

Of course, a similar command run at the shell prompt works fine:

$ git ls-files -- {test,spec,features}/*
spec/spec_helper.rb

I think the generated gemspecs are a terrific convenience, but only if they work. :)