Permalink
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...
1 parent 3daeeaa commit d7365c9ddc4fa16567cf95638251b0fb5b27419d derat committed Mar 30, 2008
Showing with 5 additions and 5 deletions.
  1. +1 −1 gearman.gemspec
  2. 0 {test → lib/gearman}/testlib.rb
  3. +1 −1 test/client.rb
  4. +1 −1 test/mock_client.rb
  5. +1 −1 test/mock_worker.rb
  6. +1 −1 test/worker.rb
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
File renamed without changes.
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
View
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
$:.unshift('../lib')
-require './testlib'
require 'gearman'
+require 'gearman/testlib'
require 'test/unit'
require 'thread'
View
@@ -2,8 +2,8 @@
$:.unshift('../lib')
require 'gearman'
+require 'gearman/testlib'
require 'test/unit'
-require './testlib'
require 'thread'
Thread.abort_on_exception = true
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

0 comments on commit d7365c9

Please sign in to comment.