Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make tests work in gems

git-svn-id: http://code.sixapart.com/svn/gearman/trunk/api/ruby@366 011c6a6d-750f-0410-a5f6-93fdcd050bc4
  • Loading branch information...
commit d7365c9ddc4fa16567cf95638251b0fb5b27419d 1 parent 3daeeaa
derat authored
2  gearman.gemspec
View
@@ -11,6 +11,6 @@ SPEC = Gem::Specification.new do |s|
s.files = candidates.delete_if {|i| i =~ /.svn/ }
s.require_path = "lib"
s.autorequire = "gearman"
- s.test_files = Dir.glob("test/{,mock_}{client,worker}.rb")
+ s.test_files = Dir.glob("test/*.rb")
s.has_rdoc = true
end
0  test/testlib.rb → lib/gearman/testlib.rb
View
File renamed without changes
2  test/client.rb
View
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
$:.unshift('../lib')
-require './testlib'
require 'gearman'
+require 'gearman/testlib'
require 'test/unit'
class TestClient < Test::Unit::TestCase
2  test/mock_client.rb
View
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
$:.unshift('../lib')
-require './testlib'
require 'gearman'
+require 'gearman/testlib'
require 'test/unit'
require 'thread'
2  test/mock_worker.rb
View
@@ -2,8 +2,8 @@
$:.unshift('../lib')
require 'gearman'
+require 'gearman/testlib'
require 'test/unit'
-require './testlib'
require 'thread'
Thread.abort_on_exception = true
2  test/worker.rb
View
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
$:.unshift('../lib')
-require './testlib'
require 'gearman'
+require 'gearman/testlib'
require 'test/unit'
class TestClient < Test::Unit::TestCase
Please sign in to comment.
Something went wrong with that request. Please try again.