Permalink
Browse files

Make tests slightly more sane and modern

  • Loading branch information...
1 parent 64fa09a commit 0a3ad068bc2ee617e139fa60547fb204cdbbd00c Hayes Davis committed May 13, 2012
Showing with 9 additions and 6 deletions.
  1. +7 −0 Rakefile
  2. +1 −1 test/{test_client.rb → client_test.rb}
  3. +1 −1 test/{test_handlers.rb → handlers_test.rb}
  4. +0 −4 test/test_grackle.rb
View
7 Rakefile
@@ -0,0 +1,7 @@
+task :test do
+ test_root = File.expand_path(File.dirname(__FILE__)+"/test")
+ require File.join(test_root,"test_helper")
+ Dir.glob("#{test_root}/**/*_test.rb") do |file|
+ require File.expand_path(file)
+ end
+end
View
2 test/test_client.rb → test/client_test.rb
@@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/test_helper'
-class TestClient < Test::Unit::TestCase
+class ClientTest < Test::Unit::TestCase
#Used for mocking HTTP requests
class Net::HTTP
View
2 test/test_handlers.rb → test/handlers_test.rb
@@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/test_helper'
-class TestHandlers < Test::Unit::TestCase
+class HandlersTest < Test::Unit::TestCase
def test_string_handler_echoes
sh = Grackle::Handlers::StringHandler.new
View
4 test/test_grackle.rb
@@ -1,4 +0,0 @@
-Dir.glob("#{File.dirname(__FILE__)}/*.rb").each do |file|
- require file
-end
-

0 comments on commit 0a3ad06

Please sign in to comment.