[rspec-users] how does one define dependencies on a specTask?

David Chelimsky dchelimsky at gmail.com
Thu Mar 18 19:50:24 EDT 2010


On Mar 18, 2010, at 12:12 PM, jw wrote:

> I get that you create dependencies on a normal rake task like this:
> 
> task :codeGen do
>  # do the code generation
> end
> 
> task :compile => :codeGen do
>  # do the compilation
> end
> 
> 
> but what is the syntax for a specTask?
> 
> Spec::Rake::SpecTask.new('task1a') do |t|
>    # t.spec_files = ...
> end
> 
> You can create a (redundant) standard rake task:
> 
> task :task1b => 'task1a' do
>    # just runs task1a
> end
> 
> but that sure seems unnecessary.  There's got to be a way to do this, right?

Just call "task1a" directly.


More information about the rspec-users mailing list