Sha256: 6cc73db07b76ac25650eaa61902056070dff4b64069ef7eba80d2f15991efa7e
Contents?: true
Size: 723 Bytes
Versions: 4
Compression:
Stored size: 723 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe CreditcardPayment do before(:each) do @creditcard_payment = CreditcardPayment.new end fixtures :gateways, :gateway_configurations describe "payment_gateway" do it "should exist" do @creditcard_payment.respond_to?(:payment_gateway).should be_true end it "should return an instance of Spree::BogusGateway in development mode" do ENV["RAILS_ENV"] = "development" @creditcard_payment.payment_gateway.should be_an_instance_of(Spree::BogusGateway) end it "should set the ActiveMerchant gateway mode to :test unless in production mode" do @creditcard_payment.payment_gateway.should be_test end end end
Version data entries
4 entries across 4 versions & 1 rubygems