File: Rakefile

package info (click to toggle)
ruby-rack-test 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: ruby: 2,269; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
task default: :spec

desc "Run specs"
task "spec" do
  sh "#{FileUtils::RUBY} -w #{'-W:strict_unused_block' if RUBY_VERSION >= '3.4'} spec/all.rb"
end

desc "Run specs with coverage"
task "spec_cov" do
  ENV['COVERAGE'] = '1'
  sh "#{FileUtils::RUBY} -w spec/all.rb"
  ENV.delete('COVERAGE')
end

desc 'Generate RDoc'
task :docs do
  FileUtils.rm_rf('doc')
  require_relative 'lib/rack/test/version'
  sh "rdoc --title 'Rack::Test #{Rack::Test::VERSION} API Documentation'"
end