Sha256: e3276e57ea11c4ac5c61e92885490d6407c31f9105c2025747cc887b4c97262a

Contents?: true

Size: 622 Bytes

Versions: 12

Compression:

Stored size: 622 Bytes

Contents

require 'spec_helper'

describe WirecardSepa::Config do
  let(:config) { described_class.new(valid_params) }
  let(:valid_params) do
    {
      api_url: 'http://example.com',
      http_auth_username: 'alice',
      http_auth_password: 'secret',
      merchant_account_id: '123',
      creditor_id: '31415',
    }
  end

  describe '#http_auth_username' do
    it 'returns the http auth username' do
      expect(config.http_auth_username).to eq 'alice'
    end
  end

  describe '#http_auth_password' do
    it 'returns the http auth password' do
      expect(config.http_auth_password).to eq 'secret'
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wirecard_sepa-0.1.7 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.1.6 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.1.5 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.1.4 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.1.3 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.1.2 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.1.1 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.1.0 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.0.5 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.0.4 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.0.3 spec/lib/wirecard_sepa/config_spec.rb
wirecard_sepa-0.0.2 spec/lib/wirecard_sepa/config_spec.rb