require 'gem2deb/rake/spectask'

Gem2Deb::Rake::RSpecTask.new do |spec|
  spec.pattern = './spec/**/*_spec.rb'
end

task :default => :setup_test_app

task :setup_test_app do
  mkdir_p 'spec/railsapps/rails_42/app'
  cp_r 'spec/railsapps/shared/pipeline/app/assets',   'spec/railsapps/rails_42/app/assets'
  cp_r 'spec/railsapps/shared/all/app/mailers',       'spec/railsapps/rails_42/app/mailers'
  cp_r 'spec/railsapps/shared/all/app/views',         'spec/railsapps/rails_42/app/views'
  ln_s 'mailer', 'spec/railsapps/rails_42/app/views/auto_mailer'
end
