[Rspec-devel] SpecTask with rake

itsme213 itsme213 at hotmail.com
Tue May 30 15:13:18 EDT 2006


Anyone have SpecTask working in rake? Any idea what I am doing wrong here?

Thanks.

> 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?
>


More information about the Rspec-devel mailing list