Sha256: c2c9dbb9376329614fd412c700ceba9d0d9bef7e608e3ad043309300b8dc60d0

Contents?: true

Size: 473 Bytes

Versions: 2

Compression:

Stored size: 473 Bytes

Contents

require 'spec_helper'

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_gateway-2.1.1 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-2.0.1 spec/models/gateway/authorize_net_cim_spec.rb