<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,11 +31,11 @@ require 'eBayAPI'
 # This file must be in the current directory your $RUBYLIB environment var.
 load('myCredentials.rb')
 
-$eBay = EBay::API.new($authToken, $devId, $appId, $certId, :sandbox =&gt; true)
-
 class TestHelloWorld &lt; Test::Unit::TestCase
+  @@eBay = EBay::API.new($authToken, $devId, $appId, $certId, :sandbox =&gt; true)
+
   def test_simplest_call
-    resp = $eBay.GeteBayOfficialTime
+    resp = @@eBay.GeteBayOfficialTime
 
     assert_respond_to(resp, &quot;timestamp&quot;)
     assert_respond_to(resp, &quot;ack&quot;)</diff>
      <filename>test/tc_hello_world.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,28 +31,28 @@ require 'eBayAPI'
 # This file must be in the current directory your $RUBYLIB environment var.
 load('myCredentials.rb')
 
-$eBay = EBay::API.new($authToken, $devId, $appId, $certId, :sandbox =&gt; true)
-
 class TestItems &lt; Test::Unit::TestCase
   @@item_title = 'eBay4R Test Case Item';
   @@item_descr = 'eBay API for Ruby @ http://ebay4r.rubyforge.org/';
 
+  @@eBay = EBay::API.new($authToken, $devId, $appId, $certId, :sandbox =&gt; true)
+
   def test_add_item
-    resp = $eBay.AddItem(:Item =&gt; EBay.Item(:PrimaryCategory =&gt; EBay.Category(:CategoryID =&gt; 57882),
-                                            :Title =&gt; @@item_title,
-                                            :Description =&gt; @@item_descr,
-                                            :Location =&gt; 'RubyForge',
-                                            :StartPrice =&gt; '12.0',
-                                            :Quantity =&gt; 1,
-                                            :ListingDuration =&gt; &quot;Days_7&quot;,
-                                            :Country =&gt; &quot;US&quot;,
-                                            :Currency =&gt; &quot;USD&quot;,
-                                            :PaymentMethods =&gt; [&quot;VisaMC&quot;, &quot;PersonalCheck&quot;],
-                                            :ShippingDetails =&gt; EBay.ShippingDetails(
-                                              :ShippingType =&gt; 'Flat',
-                                              :ShippingServiceOptions =&gt; EBay.ShippingServiceOptions(
-                                                 :ShippingService =&gt; &quot;USPSMedia&quot;,
-                                                 :ShippingServiceCost =&gt; '2.50'))))
+    resp = @@eBay.AddItem(:Item =&gt; EBay.Item(:PrimaryCategory =&gt; EBay.Category(:CategoryID =&gt; 57882),
+                                             :Title =&gt; @@item_title,
+                                             :Description =&gt; @@item_descr,
+                                             :Location =&gt; 'RubyForge',
+                                             :StartPrice =&gt; '12.0',
+                                             :Quantity =&gt; 1,
+                                             :ListingDuration =&gt; &quot;Days_7&quot;,
+                                             :Country =&gt; &quot;US&quot;,
+                                             :Currency =&gt; &quot;USD&quot;,
+                                             :PaymentMethods =&gt; [&quot;VisaMC&quot;, &quot;PersonalCheck&quot;],
+                                             :ShippingDetails =&gt; EBay.ShippingDetails(
+                                               :ShippingType =&gt; 'Flat',
+                                               :ShippingServiceOptions =&gt; EBay.ShippingServiceOptions(
+                                                  :ShippingService =&gt; &quot;USPSMedia&quot;,
+                                                  :ShippingServiceCost =&gt; '2.50'))))
 
     assert_respond_to(resp, &quot;timestamp&quot;)
     assert_respond_to(resp, &quot;ack&quot;)
@@ -67,11 +67,11 @@ class TestItems &lt; Test::Unit::TestCase
   end
 
   def test_add_item_no_params
-    assert_raise(EBay::Error::ApplicationError) { $eBay.AddItem() }
+    assert_raise(EBay::Error::ApplicationError) { @@eBay.AddItem() }
   end
 
   def test_get_item
-    resp = $eBay.GetItem(:DetailLevel =&gt; 'ReturnAll', :ItemID =&gt; @@item_id)
+    resp = @@eBay.GetItem(:DetailLevel =&gt; 'ReturnAll', :ItemID =&gt; @@item_id)
 
     assert_respond_to(resp, &quot;timestamp&quot;)
     assert_respond_to(resp, &quot;ack&quot;)</diff>
      <filename>test/tc_items.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,15 +31,14 @@ require 'eBayAPI'
 # This file must be in the current directory your $RUBYLIB environment var.
 load('myCredentials.rb')
 
-$eBay = EBay::API.new($authToken, $devId, $appId, $certId, :sandbox =&gt; true, :site_id =&gt; 100)
-
 class TestRouting &lt; Test::Unit::TestCase
+  @@eBay = EBay::API.new($authToken, $devId, $appId, $certId, :sandbox =&gt; true, :site_id =&gt; 100)
 
   # If our routing works correctly, the GetCategories call should go to eBay Motors instead of default US site
   def test_ebay_motors_categories
 
     # Call &quot;GetCategories&quot;
-    resp = $eBay.GetCategories(:DetailLevel =&gt; 'ReturnAll', :CategorySideID =&gt; 100, :LevelLimit =&gt; 1)
+    resp = @@eBay.GetCategories(:DetailLevel =&gt; 'ReturnAll', :CategorySideID =&gt; 100, :LevelLimit =&gt; 1)
  
     assert_respond_to(resp, &quot;timestamp&quot;)
     assert_respond_to(resp, &quot;ack&quot;)</diff>
      <filename>test/tc_routing.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b96ac2a63e3b9eed161cce6c5effb7d3069cc318</id>
    </parent>
  </parents>
  <author>
    <name>Garry Dolley</name>
    <email>gdolley@arpnetworks.com</email>
  </author>
  <url>http://github.com/up_the_irons/ebay4r/commit/93b1a980d5d4d5ac51367c7e44d5ea8ee782068c</url>
  <id>93b1a980d5d4d5ac51367c7e44d5ea8ee782068c</id>
  <committed-date>2008-10-04T02:06:42-07:00</committed-date>
  <authored-date>2008-10-04T02:06:42-07:00</authored-date>
  <message>$eBay -&gt; @@eBay: changed eBay object from global var to class var.

The global variable caused problems when trying to run the test suite within
a rake task.</message>
  <tree>784ca141905f21120d2f604013b090a1548278a7</tree>
  <committer>
    <name>Garry Dolley</name>
    <email>gdolley@arpnetworks.com</email>
  </committer>
</commit>
