[Rspec-devel] SpecTask with rake

aslak hellesoy aslak.hellesoy at gmail.com
Tue May 30 17:37:43 EDT 2006


The FileList probably resolves to an empty set of files. Are you sure
you have files that match the glob ('spec/**/*_spec.rb')?

Also, what spec --version are you using?

Aslak

On 5/28/06, itsme213 <itsme213 at hotmail.com> wrote:
> Any idea what I am doing wrong here? When I try a rakefile:
>
> -------------------
> require 'rake'
> require 'spec/rake/spectask'
>
> desc "spec"
> Spec::Rake::SpecTask.new do |t|
>  t.libs << "spec"
>   t.spec_files = FileList['spec/**/*_spec.rb']
> end
>
> -------------------
>
> I get:
> C:>rake spec
> (in C:)
> ruby -Ilib;spec
> "c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.4/lib/spec/rake/../../../bin/spec"
> Usage: spec [options] (FILE|DIRECTORY)+
>
>     -b, --backtrace                  Output full backtrace
>     -f, --format FORMAT              Output format (specdoc|s|rdoc|r)
>     -d, --dry-run                    Don't execute specs
>     -s, --spec SPECIFICATION_NAME    Execute a single specification
>     -v, --version                    Show version
>     -h, --help                       Show this message
>
>
> -------------------
>
> If the spectask integration is not working yet, how can I directly process
> my spec file in a normal rake task?
>
> Thanks!
> _______________________________________________
> Rspec-devel mailing list
> Rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the Rspec-devel mailing list