Sha256: 229f1b51970565a0e446b53da479b701483e8c999823580f7969e565580983df
Contents?: true
Size: 684 Bytes
Versions: 15
Compression:
Stored size: 684 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe CreditcardPayment do before(:each) do @creditcard = Creditcard.new end fixtures :gateways, :gateway_configurations describe "payment_gateway" do it "should exist" do @creditcard.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_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_gateway.should be_test end end end
Version data entries
15 entries across 15 versions & 2 rubygems