Sha256: fbfbd361cf3311420ac6768b9ff419632f9a9f1481fa6514218aaa72aa316b11

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Gateway::AuthorizeNetCim do
  let (:gateway) { Gateway::AuthorizeNetCim.new }

  describe "options" do
    it "should include :test => true when :test_mode is true" do
      gateway.prefers_test_mode = true
      gateway.options[:test].should == true
    end

    it "should not include :test when :test_mode is false" do
      gateway.prefers_test_mode = false
      gateway.options[:test].should be_nil
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
MyCommerceapi-1.0.0 core/spec/models/gateway/authorize_net_cim_spec.rb
MyCommerce-0.0.3 core/spec/models/gateway/authorize_net_cim_spec.rb