[Ruby] hoe and tests

Ryan Davis ryand-ruby at zenspider.com
Wed Nov 1 11:05:58 PST 2006


On Oct 31, 2006, at 10:39 PM, Timothy J. Wood wrote:

>
>
>    I packaged my gem and installed it locally, but when I do 'gem
> check -t' on the installed copy, no tests are found.  Presumably the
> issue is that there is no test_file set on the gem spec.
>
>    Adding this to my spec_extras fixes the problem:
>
>      :test_files => Dir[*p.test_globs]

Ok. Took a little bit of digging to figger it out. Currently it does  
this:

       s.test_suite_file = "test/test_all.rb" if test ?f, "test/ 
test_all.rb"

According to the rubygems code, test_suite_file has been deprecated  
so I'll switch to your version now. Thanks!





More information about the Ruby mailing list