Sha256: 16c760aaddacd25ec12d783d477520bd40994b15633f1d0295a6dfa2e4048ae2

Contents?: true

Size: 662 Bytes

Versions: 9

Compression:

Stored size: 662 Bytes

Contents

require "spec_helper"

describe Spree::CheckoutController, type: :controller do
  describe "#permitted_source_attributes" do
    it "returns added attributes" do
      source_attributes = [:number, :month, :year, :expiry, :verification_value, :first_name, :last_name, :cc_type,
                           :gateway_customer_profile_id, :gateway_payment_profile_id, :last_digits, :name,
                           :encrypted_data, :convenience, :email, :phone, :family_name, :given_name, :family_name_kana,
                           :given_name_kana, :prepaid_number]
      expect(controller.permitted_source_attributes).to eq source_attributes
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_komoju-0.1.4 spec/controllers/spree/checkout_controller_spec.rb
spree_komoju-0.1.3 spec/controllers/spree/checkout_controller_spec.rb
spree_komoju-0.1.2 spec/controllers/spree/checkout_controller_spec.rb
spree_komoju-0.1.1 spec/controllers/spree/checkout_controller_spec.rb
spree_komoju-0.1.0 spec/controllers/spree/checkout_controller_spec.rb
spree_komoju-0.0.9 spec/controllers/spree/checkout_controller_spec.rb
spree_komoju-0.0.8 spec/controllers/spree/checkout_controller_spec.rb
spree_komoju-0.0.7 spec/controllers/spree/checkout_controller_spec.rb
spree_komoju-0.0.6 spec/controllers/spree/checkout_controller_spec.rb