forked from rack/rack-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (26 loc) · 688 Bytes
/
Copy pathRakefile
File metadata and controls
33 lines (26 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require "rubygems"
require 'rspec/core'
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
t.ruby_opts = "-w"
end
task :default => :spec
# desc "Run all specs in spec directory with RCov"
# RSpec::Core::RakeTask.new(:rcov) do |t|
# t.libs << 'lib'
# t.libs << 'spec'
# t.warning = true
# t.rcov = true
# t.rcov_opts = ['-x spec']
# end
desc "Generate RDoc"
task :docs do
FileUtils.rm_rf("doc")
require "rack/test/version"
sh "rdoc --title 'Rack::Test #{Rack::Test::VERSION} API Documentation'"
end
desc 'Removes trailing whitespace'
task :whitespace do
sh %{find . -name '*.rb' -exec sed -i 's/ *$//g' {} \\;}
end