<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,44 +1,86 @@
-require 'config/requirements'
-
-begin
-  require 'hanna/rdoctask'
-rescue LoadError =&gt; e
-  require &quot;rake/rdoctask&quot;
-end
-
-require 'config/jeweler' # setup gem configuration
-
-desc &quot;Clean tmp directory&quot;
-task :clean_tmp do |t|
-  FileUtils.rm_rf(&quot;#{File.dirname(__FILE__)}/Manifest.txt&quot;) if ::File.exists?(&quot;#{File.dirname(__FILE__)}/Manifest.txt&quot;) 
-  FileUtils.touch(&quot;#{File.dirname(__FILE__)}/Manifest.txt&quot;)
-  %w(logs tmp).each do |dir|
-    FileUtils.rm_rf(&quot;#{File.dirname(__FILE__)}/#{dir}&quot;) if ::File.exists?(&quot;#{File.dirname(__FILE__)}/#{dir}&quot;)
-  end
-end
-
-desc &quot;Remove the pkg directory&quot;
-task :clean_pkg do |t|
-  %w(pkg).each do |dir|
-    FileUtils.rm_rf(&quot;#{File.dirname(__FILE__)}/#{dir}&quot;) if ::File.exists?(&quot;#{File.dirname(__FILE__)}/#{dir}&quot;)
-  end
-end
-
-
-namespace :gem do
-  task(:build).prerequisites.unshift :gemspec # Prepend the gemspec generation
-  
-  desc &quot;Build the gem only if the tests pass&quot;
-  task :test_then_build =&gt; [:test, :build]
-  
-  desc &quot;Build and install the gem only if the tests pass&quot;
-  task :test_then_install =&gt; [:test, :install]
-end
-
-# Generate documentation
-Rake::RDocTask.new do |rd|
-  rd.main = &quot;README.rdoc&quot;
-  rd.rdoc_files.include(&quot;README.rdoc&quot;, &quot;lib/**/*.rb&quot;)
-  rd.rdoc_dir = &quot;rdoc&quot;
-  # rd.template = &quot;hanaa&quot;
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+require 'config/requirements'
+
+begin
+  require 'hanna/rdoctask'
+rescue LoadError =&gt; e
+  require &quot;rake/rdoctask&quot;
+end
+
+require 'config/jeweler' # setup gem configuration
+
+task :default  =&gt; [:test, :cleanup_test]
+desc &quot;Update vendor directory and run tests&quot;
+task :ci =&gt; [&quot;poolparty:vendor:setup&quot;, &quot;poolparty:vendor:update&quot;, :spec, :test]
+ 
+task :cleanup_test do
+  ::FileUtils.rm_rf &quot;/tmp/poolparty&quot;
+end
+ 
+# task :test do
+#   sh &quot;ruby -Ilib:test #{Dir[&quot;#{File.dirname(__FILE__)}/../test/poolparty/*/*.rb&quot;].join(&quot; &quot;)}&quot;
+# end
+ 
+Rake::TestTask.new(:test) do |t|
+  t.test_files = FileList['test/lib/**/*_test.rb']
+  t.warning = false
+  t.verbose = false
+end
+ 
+begin
+  require 'rcov/rcovtask'
+ 
+  Rcov::RcovTask.new(:rcov) do |t|
+    t.libs &lt;&lt; FileList['lib/**/*.rb']
+    t.rcov_opts = [
+      '-xRakefile', '-xrakefile',
+      '-xlib/erlang',
+      '--text-report',
+      '--sort coverage'
+    ] + FileList['tasks/*.rake'].pathmap(&quot;-x%p&quot;)
+    t.test_files = FileList['test/lib/**/*_test.rb']
+    t.output_dir = 'coverage'
+    t.verbose = true
+  end
+rescue LoadError
+  puts &quot;RCov is not available&quot;
+end
+
+
+desc &quot;Clean tmp directory&quot;
+task :clean_tmp do |t|
+  FileUtils.rm_rf(&quot;#{File.dirname(__FILE__)}/Manifest.txt&quot;) if ::File.exists?(&quot;#{File.dirname(__FILE__)}/Manifest.txt&quot;) 
+  FileUtils.touch(&quot;#{File.dirname(__FILE__)}/Manifest.txt&quot;)
+  %w(logs tmp).each do |dir|
+    FileUtils.rm_rf(&quot;#{File.dirname(__FILE__)}/#{dir}&quot;) if ::File.exists?(&quot;#{File.dirname(__FILE__)}/#{dir}&quot;)
+  end
+end
+
+desc &quot;Remove the pkg directory&quot;
+task :clean_pkg do |t|
+  %w(pkg).each do |dir|
+    FileUtils.rm_rf(&quot;#{File.dirname(__FILE__)}/#{dir}&quot;) if ::File.exists?(&quot;#{File.dirname(__FILE__)}/#{dir}&quot;)
+  end
+end
+
+
+namespace :gem do
+  task(:build).prerequisites.unshift :gemspec # Prepend the gemspec generation
+  
+  desc &quot;Build the gem only if the tests pass&quot;
+  task :test_then_build =&gt; [:test, :build]
+  
+  desc &quot;Build and install the gem only if the tests pass&quot;
+  task :test_then_install =&gt; [:test, :install]
+end
+
+# Generate documentation
+Rake::RDocTask.new do |rd|
+  rd.main = &quot;README.rdoc&quot;
+  rd.rdoc_files.include(&quot;README.rdoc&quot;, &quot;lib/**/*.rb&quot;)
+  rd.rdoc_dir = &quot;rdoc&quot;
+  # rd.template = &quot;hanaa&quot;
 end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -3,5 +3,9 @@ class Object
   def pool(name=nil, &amp;block)
     @@pool ||= PoolParty::Pool.new(name, &amp;block)
   end
+  
+  def reset!
+    @@pool = nil
+  end
     
 end
\ No newline at end of file</diff>
      <filename>lib/core/object.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,48 +10,11 @@ class ArrayTest &lt; Test::Unit::TestCase
                   {:name =&gt; &quot;jenna&quot;, :occupation =&gt; &quot;lawyer&quot;}
                 ]
   end
-    
-  def test_have_collect_with_index
-    out = []
-    @arr.collect_with_index do |ele, i|
-      out &lt;&lt; &quot;#{ele}#{i+1}&quot;
-    end
-    assert_equal [&quot;a1&quot;, &quot;b2&quot;, &quot;c3&quot;, &quot;d4&quot;], out
-  end
-    
+      
   def test_be_able_to_select_with_hash
     assert_equal @hash_arr.select_with_hash(:name =&gt; &quot;matt&quot;).first[:occupation], &quot;doctor&quot;
     assert_equal @hash_arr.select_with_hash(:occupation =&gt; &quot;computer scientist&quot;).first[:name], &quot;peter&quot;
     assert @hash_arr.select_with_hash(:occupation =&gt; &quot;matt&quot;).empty?
   end
-    
-  def test_should_be_able_to_wrap_with_the_next
-    assert_equal @arr.wrapping_next(&quot;a&quot;), &quot;b&quot;
-    assert_equal @arr.wrapping_next(&quot;b&quot;), &quot;c&quot;
-    assert_equal @arr.wrapping_next(&quot;c&quot;), &quot;d&quot;
-    assert_equal @arr.wrapping_next(&quot;d&quot;), &quot;a&quot;
-  end
-  
-  def test_swap
-    assert_equal %w(a c b d), @arr.swap!(1,2)
-    assert_equal %w(d c b a), @arr.swap!(0,3)
-    assert_equal %w(d c a b), @arr.swap!(2,3)
-  end
-  
-  def test_zip_offset
-    arr = %w(a b c d e f)
-    assert_equal [[&quot;a&quot;,&quot;b&quot;],[&quot;b&quot;,&quot;c&quot;],[&quot;c&quot;,&quot;d&quot;],[&quot;d&quot;,&quot;e&quot;],[&quot;e&quot;,&quot;f&quot;]], arr.zip_offset(1)
-    assert_equal [[&quot;a&quot;,&quot;b&quot;],[&quot;b&quot;,&quot;c&quot;],[&quot;c&quot;,&quot;d&quot;],[&quot;d&quot;,&quot;e&quot;]], arr.zip_offset(2)
-    assert_equal [[&quot;a&quot;,&quot;b&quot;],[&quot;b&quot;,&quot;c&quot;],[&quot;c&quot;,&quot;d&quot;]], arr.zip_offset(3)
-    assert_equal [[&quot;a&quot;,&quot;b&quot;]], arr.zip_offset(5)
-    
-    assert_equal [[&quot;a&quot;,&quot;b&quot;],[&quot;b&quot;,&quot;c&quot;],[&quot;c&quot;,&quot;d&quot;],[&quot;d&quot;,&quot;e&quot;]], %w(a b c d e).zip_offset(1)
-    assert_equal [[&quot;a&quot;,&quot;b&quot;],[&quot;b&quot;,&quot;c&quot;],[&quot;c&quot;,&quot;d&quot;]], %w(a b c d e).zip_offset(2)
-  end
-  
-  def test_rotate
-    arr = %w(a b c d e)
-    assert_equal %w(b c d e a), arr.rotate
-  end
   
 end
\ No newline at end of file</diff>
      <filename>test/lib/core/array_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,52 +3,24 @@ require &quot;#{File.dirname(__FILE__)}/../../test_helper&quot;
 class ObjectTest &lt; Test::Unit::TestCase
   context &quot;object&quot; do
     setup do
-      clear!
+      reset!
     end
     context &quot;global methods&quot; do
       setup do
         @o = Object.new
       end
-      
-      should &quot;have the clouds method&quot; do      
-        assert @o.respond_to?(:clouds)
-        assert_equal Hash, @o.clouds.class
-      end
-      
+            
       should &quot;have the pools method&quot; do
-        assert @o.respond_to?(:pools)
-        assert_equal Hash, @o.pools.class
+        assert @o.respond_to?(:pool)
       end
       
       should &quot;make a pool when calling pool&quot; do
-        assert_nil @o.pools[:fun_pool]
-        @pool = @o.pool :fun_pool do
-        end
-        assert_not_nil @o.pools[&quot;fun_pool&quot;]
-        assert_equal @pool, @o.pools[&quot;fun_pool&quot;]
-      end
-      
-      should &quot;throw an error if the method pool for creation is given without a block&quot; do
-        PoolParty::PoolPartyError.create(&quot;PoolError&quot;)
-        assert_raise PoolError do
-          @o.pool :banks
+        assert_nil @@pool
+        @@pool = pool :fun_pool do
         end
+        assert_not_nil @@pool
       end
       
-      context &quot;do_once&quot; do
-        should &quot;have run_procs&quot; do
-          assert_equal Array, @o.run_procs.class
-          assert_equal [], @o.run_procs
-        end
-        
-        should &quot;insert the block into the runprocs&quot; do
-          @proc = Proc.new {}
-          @o.do_once &amp;@proc
-          assert_equal [@proc.to_s], @o.run_procs
-        end
-      end
-      
-      
     end
     
     </diff>
      <filename>test/lib/core/object_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,17 +2,7 @@ require &quot;#{File.dirname(__FILE__)}/../../test_helper&quot;
 
 class StringTest &lt; Test::Unit::TestCase
   context &quot;string&quot; do
-    
-    should &quot;replace with ^&quot; do
-      out = &quot;:god bless :country&quot; ^ {:god =&gt; &quot;Budda&quot;, :country =&gt; &quot;India&quot;}
-      assert_equal &quot;Budda bless India&quot;, out
-    end
-    
-    should &quot;not explode with non-existant data in the hash (replace with whitespace)&quot; do
-      out = &quot;:person has a girlfriend&quot; ^ {:boss =&gt; &quot;Budda&quot;}
-      assert_equal &quot; has a girlfriend&quot;, out
-    end
-    
+            
     should &quot;camelcase properly&quot; do
       assert_equal &quot;DocRiver&quot;, &quot;doc_river&quot;.camelcase
       assert_equal &quot;AWholeLottaHotdogs&quot;, &quot;a_whole_lotta_hotdogs&quot;.camelcase
@@ -39,35 +29,12 @@ class StringTest &lt; Test::Unit::TestCase
       assert_equal &quot;Pepper&quot;, &quot;dr.pepper&quot;.classify
       assert_equal &quot;Dr::Pepper&quot;, &quot;dr::pepper&quot;.classify
     end
-    
-    should &quot;to_hash from a string of = signs&quot; do
-      str =&lt;&lt;-EOE
-        a = b
-        b = c
-        c = a
-      EOE
-      hsh = str.to_hash
-      assert_equal Hash, hsh.class
-      assert_equal hsh[:a], &quot;b&quot;
-      assert_equal hsh[:b], &quot;c&quot;
-      assert_equal hsh[:c], &quot;a&quot;
-    end
-    
-    should &quot;get the top level class&quot; do
-      assert_equal &quot;pepper&quot;, &quot;Dr::Pepper&quot;.top_level_class
-      assert_equal &quot;pepper_and_chives&quot;, &quot;Dr::Pepper-And_chives&quot;.top_level_class
-      assert_equal &quot;rig&quot;, &quot;Rig&quot;.top_level_class
-    end
-    
+        
     should &quot;have the / for filepaths&quot; do
       assert_equal &quot;/root/home/stuff&quot;, &quot;/root&quot;/&quot;home&quot;/&quot;stuff&quot;
       assert_equal &quot;/root/box&quot;, &quot;/root&quot; / &quot;box&quot;
     end
     
-    should &quot;have pluralize (dumb)&quot; do
-      assert_equal &quot;ferry&quot;.pluralize(2), &quot;ferrys&quot;
-      assert_equal &quot;boat&quot;.pluralize(2), &quot;boats&quot;
-    end
   end
   
 end
\ No newline at end of file</diff>
      <filename>test/lib/core/string_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,10 +13,6 @@ class SymbolTest &lt; Test::Unit::TestCase
       assert_equal :a / :b, &quot;a/b&quot;
     end
     
-    should &quot;be able to be sanitized&quot; do
-      assert_equal &quot;abcd&quot;, &quot;a.b-c d&quot;.to_sym.sanitize
-    end
-    
     should &quot;classify the symbol&quot; do
       assert_equal :C, :c.classify
     end</diff>
      <filename>test/lib/core/symbol_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,9 @@ require &quot;#{File.dirname(__FILE__)}/../../test_helper&quot;
 
 stub_keypair_searchable_paths
 
-class PoolTest &lt; Test::Unit::TestCase
-  def setup
-  end
-  
+class PoolTest &lt; Test::Unit::TestCase  
   def test_set_up_pool_object
+    reset!
     pool &quot;hi&quot; do
     end
     assert_equal @@pool.name, &quot;hi&quot;</diff>
      <filename>test/lib/poolparty/pool_test.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>TODO.textile</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>7cecc027d0dad9fdfe187416896ad28ba1bab57f</id>
    </parent>
  </parents>
  <author>
    <name>Ari Lerner</name>
    <email>arilerner@mac.com</email>
  </author>
  <url>http://github.com/auser/poolparty/commit/b6f5664f1b89d9701be9067339fed0fcef586dc6</url>
  <id>b6f5664f1b89d9701be9067339fed0fcef586dc6</id>
  <committed-date>2009-10-27T15:22:03-07:00</committed-date>
  <authored-date>2009-10-27T15:22:03-07:00</authored-date>
  <message>Fixed tests</message>
  <tree>63a84984b7b9b0161088c9829cabb78845f1d14d</tree>
  <committer>
    <name>Ari Lerner</name>
    <email>arilerner@mac.com</email>
  </committer>
</commit>
