<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -265,10 +265,6 @@ module ActiveMerchant #:nodoc:
         cim_gateway.delete_customer_profile(:customer_profile_id =&gt; token)
       end
 
-      def test?
-        options[:test] || super
-      end
-
       # Get the internal CIM (Customer Information Manager) gateway. This gateway implements the
       # low level operations for storing/unstoring credit cards and executing transaction using
       # stored credit cards.</diff>
      <filename>lib/active_merchant/billing/gateways/authorize_net.rb</filename>
    </modified>
    <modified>
      <diff>@@ -339,10 +339,6 @@ module ActiveMerchant #:nodoc:
         commit(:validate_customer_payment_profile, request)
       end
 
-      def test?
-        options[:test] || super
-      end
-
       private
 
       def expdate(credit_card)</diff>
      <filename>lib/active_merchant/billing/gateways/authorize_net_cim.rb</filename>
    </modified>
    <modified>
      <diff>@@ -51,4 +51,5 @@ class BaseTest &lt; Test::Unit::TestCase
     Base.gateway_mode = :production
     assert_false Base.test?
   end
+
 end</diff>
      <filename>test/unit/base_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,10 +2,10 @@ require 'test_helper'
 
 class AuthorizeNetCimTest &lt; Test::Unit::TestCase
   def setup
-    Base.mode = :test
-
-    @credentials = {:login =&gt; 'X', :password =&gt; 'Y'}
-    @gateway = AuthorizeNetCimGateway.new(@credentials)
+    @gateway = AuthorizeNetCimGateway.new(
+      :login =&gt; 'X',
+      :password =&gt; 'Y'
+    )
     @amount = 100
     @credit_card = credit_card
     @address = address
@@ -287,19 +287,6 @@ class AuthorizeNetCimTest &lt; Test::Unit::TestCase
     assert_equal 'This transaction has been approved.', response.params['direct_response']['message']
   end
 
-  def test_production_mode
-    Base.mode = :production
-    gateway = AuthorizeNetCimGateway.new(@credentials)
-    assert !gateway.test?
-  end
-
-  def test_test_mode
-    Base.mode = :production
-    @credentials[:test] = true
-    gateway = AuthorizeNetCimGateway.new(@credentials)
-    assert gateway.test?
-  end
-
   private
   
   def successful_create_customer_profile_response</diff>
      <filename>test/unit/gateways/authorize_net_cim_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,10 +2,10 @@ require 'test_helper'
 
 class AuthorizeNetTest &lt; Test::Unit::TestCase
   def setup
-    Base.mode = :test
-
-    @credentials = {:login =&gt; 'X', :password =&gt; 'Y'}
-    @gateway = AuthorizeNetGateway.new(@credentials)
+    @gateway = AuthorizeNetGateway.new(
+      :login =&gt; 'X',
+      :password =&gt; 'Y'
+    )
     @amount = 100
     @credit_card = credit_card
     @subscription_id = '100748'
@@ -289,19 +289,6 @@ class AuthorizeNetTest &lt; Test::Unit::TestCase
     assert_equal '2013-11', @gateway.send(:arb_expdate, credit_card('4111111111111111', :month =&gt; &quot;11&quot;, :year =&gt; &quot;2013&quot;))
   end
 
-  def test_production_mode
-    Base.mode = :production
-    gateway = AuthorizeNetGateway.new(@credentials)
-    assert !gateway.test?
-  end
-
-  def test_test_mode
-    Base.mode = :production
-    @credentials[:test] = true
-    gateway = AuthorizeNetGateway.new(@credentials)
-    assert gateway.test?
-  end
-
   private
   def post_data_fixture
     'x_encap_char=%24&amp;x_card_num=4242424242424242&amp;x_exp_date=0806&amp;x_card_code=123&amp;x_type=AUTH_ONLY&amp;x_first_name=Longbob&amp;x_version=3.1&amp;x_login=X&amp;x_last_name=Longsen&amp;x_tran_key=Y&amp;x_relay_response=FALSE&amp;x_delim_data=TRUE&amp;x_delim_char=%2C&amp;x_amount=1.01'</diff>
      <filename>test/unit/gateways/authorize_net_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2fac29fb788afc5396c6ffb33ed759c71957f1c2</id>
    </parent>
  </parents>
  <author>
    <name>adam</name>
    <email>adam@3scale.net</email>
  </author>
  <url>http://github.com/metatribe/active_merchant/commit/f529cbaf971f23d4d5b232ff8be827cc777eb763</url>
  <id>f529cbaf971f23d4d5b232ff8be827cc777eb763</id>
  <committed-date>2009-11-03T09:41:27-08:00</committed-date>
  <authored-date>2009-11-03T09:41:27-08:00</authored-date>
  <message>Revert &quot;Adds support for :test =&gt; true option to AuthorizeNetGateway and AuthorizeNetCimGateway&quot;

This reverts commit 2fac29fb788afc5396c6ffb33ed759c71957f1c2.

- That was a mistake, because the :test options is supposed to be used
  with live account :)</message>
  <tree>a9ab71bc5eda966e0c8ff44e94e75b76df0a480a</tree>
  <committer>
    <name>adam</name>
    <email>adam@3scale.net</email>
  </committer>
</commit>
