How does one define dependencies on a specTask?

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?

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

end

but that sure seems unnecessary. There’s got to be a way to do this, right?

Just call “task1a” directly.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs