File: ruby-tests.rake

package info (click to toggle)
ruby-celluloid 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 848 kB
  • sloc: ruby: 7,579; makefile: 10
file content (21 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'gem2deb/rake/spectask'

task :before do
  File.rename("./spec/shared/", "./spec/shared.backup/")
  File.rename("./spec/support/", "./spec/support.backup/")
end

task :after do
  File.rename("./spec/shared.backup/", "./spec/shared/")
  File.rename("./spec/support.backup/", "./spec/support/")
end

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

if ENV["AUTOPKGTEST_TMP"]
  task :default => [:before, :spec, :after]
else
  task :default => :spec
end