Sha256: 921187f79dc6abf40ae21e840e3aaaacd1657a1f4a25d80ae8f335175dcc690c

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Solidus::Gateway::CulqiGateway, type: :model do
  let!(:gateway) { described_class.new }

  context new_gateway: true do
    it { gateway.respond_to?(:partial_name) }
    it { expect(gateway.partial_name).to eq('culqi') }
    it { expect(gateway.gateway_class).to eq(Solidus::Gateway::CulqiGateway) }
  end

  context old_gateway: true do
    it { expect(gateway.method_type).to eq('culqi') }
    it { expect(gateway.provider_class).to eq(Solidus::Gateway::CulqiGateway) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_culqi-0.1.1 spec/models/culqi_gateway.rb
solidus_culqi-0.1.0 spec/models/culqi_gateway.rb