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

jw joshuawallis at gmail.com
Thu Mar 18 13:12:51 EDT 2010


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?


More information about the rspec-users mailing list