Skip to content

Commit

Permalink
Fix unit tests running twice
Browse files Browse the repository at this point in the history
Echoe creates a test task that works exactly like the one explicitly specified
in the Rakefile. Remove the explicit test task.
  • Loading branch information
rtomayko committed Apr 14, 2008
1 parent ce4cf34 commit 415b75b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Rakefile
@@ -1,22 +1,20 @@
require 'rubygems'
require 'rake/testtask'
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

Rake::TestTask.new do |t|
ENV['SINATRA_ENV'] = 'test'
t.pattern = File.dirname(__FILE__) + "/test/*_test.rb"
end

Echoe.new("sinatra") do |p|
p.author = "Blake Mizerany"
p.summary = "Classy web-development dressed in a DSL"
Expand All @@ -26,4 +24,3 @@ Echoe.new("sinatra") do |p|
p.install_message = "*** Be sure to checkout the site for helpful tips! sinatrarb.com ***"
p.include_rakefile = true
end

0 comments on commit 415b75b

Please sign in to comment.