Permalink
Browse files

Move require near usage

  • Loading branch information...
weppos committed Dec 25, 2011
1 parent f8aebf0 commit 6f889a2508bfe144f1de4a95f32024ef7e96bff4
Showing with 2 additions and 3 deletions.
  1. +2 −3 Rakefile
View
@@ -1,7 +1,6 @@
require 'rubygems'
require 'rubygems/package_task'
require 'bundler'
-require 'rake/testtask'
$:.unshift(File.dirname(__FILE__) + "/lib")
require 'public_suffix'
@@ -10,7 +9,6 @@ require 'public_suffix'
# Common package properties
PKG_NAME = ENV['PKG_NAME'] || PublicSuffix::GEM
PKG_VERSION = ENV['PKG_VERSION'] || PublicSuffix::VERSION
-RUBYFORGE_PROJECT = nil
# Run test by default.
@@ -62,7 +60,8 @@ desc "Package the library and generates the gemspec"
task :package => [:gemspec]
-# Run all the tests in the /test folder
+require 'rake/testtask'
+
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]

0 comments on commit 6f889a2

Please sign in to comment.