1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/Rakefile
Ryan Tomayko 415b75bb57 Fix unit tests running twice
Echoe creates a test task that works exactly like the one explicitly specified
in the Rakefile. Remove the explicit test task.
2008-04-13 23:15:03 -04:00

26 lines
696 B
Ruby

require 'rubygems'
require 'rake/rdoctask'
require 'echoe'
task :default => :test
task :test do
ENV['SINATRA_ENV'] = 'test'
end
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files += ["README.rdoc"]
rd.rdoc_files += Dir.glob("lib/**/*.rb")
rd.rdoc_dir = 'doc'
end
Echoe.new("sinatra") do |p|
p.author = "Blake Mizerany"
p.summary = "Classy web-development dressed in a DSL"
p.url = "http://www.sinatrarb.com"
p.docs_host = "sinatrarb.com:/var/www/blakemizerany.com/public/docs/"
p.dependencies = ["mongrel >=1.0.1", "rack >= 0.3.0"]
p.install_message = "*** Be sure to checkout the site for helpful tips! sinatrarb.com ***"
p.include_rakefile = true
end