<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 = ActiveMerchant CHANGELOG
 
+* Add support for :test =&gt; true option to OgoneGateway [cody]
 * Bump PayPal Version to 59.0 [cody]
 * Add amex support to eWay gateway [cody]
 * Change Payflow header X-VPS-Timeout -&gt; X-VPS-Client-Timeout [cody]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -132,7 +132,11 @@ module ActiveMerchant #:nodoc:
           perform_non_referenced_credit(money, identification_or_credit_card, options)
         end
       end
-
+      
+      def test?
+        @options[:test] || super
+      end
+      
       private
       def reference_from(authorization)
         authorization.split(&quot;;&quot;).first</diff>
      <filename>lib/active_merchant/billing/gateways/ogone.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,10 @@ class OgoneTest &lt; Test::Unit::TestCase
       :description =&gt; 'Store Purchase'
     }
   end
+  
+  def teardown
+    Base.mode = :test
+  end
 
   def test_successful_authorize
     @gateway.expects(:ssl_post).returns(successful_purchase_response)
@@ -105,6 +109,19 @@ class OgoneTest &lt; Test::Unit::TestCase
     response = @gateway.purchase(@amount, @credit_card)
     assert_equal 'P', response.cvv_result['code']
   end
+  
+  def test_production_mode
+    Base.mode = :production
+    gateway = OgoneGateway.new(@credentials)
+    assert !gateway.test?
+  end
+
+  def test_test_mode
+    Base.mode = :production
+    @credentials[:test] = true
+    gateway = OgoneGateway.new(@credentials)
+    assert gateway.test?
+  end
 
   private
 </diff>
      <filename>test/unit/gateways/ogone_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b4523fe58e805fc062c16f0a74d1dbe3e74185c1</id>
    </parent>
  </parents>
  <author>
    <name>Cody Fauser</name>
    <email>codyfauser@gmail.com</email>
  </author>
  <url>http://github.com/rayvinly/active_merchant/commit/55f765cbeba5079406503b1be99166e83428d331</url>
  <id>55f765cbeba5079406503b1be99166e83428d331</id>
  <committed-date>2009-09-11T05:27:12-07:00</committed-date>
  <authored-date>2009-09-11T05:27:12-07:00</authored-date>
  <message>Add support for :test =&gt; true option to OgoneGateway</message>
  <tree>9d38867cd0e753605aac9e3fb6f384f1f1506048</tree>
  <committer>
    <name>Cody Fauser</name>
    <email>codyfauser@gmail.com</email>
  </committer>
</commit>
