Sha256: 167b4ecd028bfa80cae861239c5bd64ccdb7d9d367a86ee25ce7fd95b0432baf

Contents?: true

Size: 601 Bytes

Versions: 8

Compression:

Stored size: 601 Bytes

Contents

describe Payanyway::Request::Pay do
  let(:service) { described_class.new(params) }
  let(:params) do
    {
      'MNT_ID'             => Payanyway::Gateway.config['moneta_id'].to_s,
      'MNT_TRANSACTION_ID' => 2,
      'MNT_OPERATION_ID'   => 3,
      'MNT_AMOUNT'         => 10.20,
      'MNT_CURRENCY_CODE'  => 'RUB',
      'MNT_TEST_MODE'      => 1,
      'MNT_SIGNATURE'      => '2b7f8d7d00e8e980b3df95dc70d47461'# from spec/lib/payanyway/helpers/signature_generator_spec.rb
    }
  end

  describe '#success?' do
    subject { service.success? }

    it { is_expected.to be_truthy }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
payanyway-2.3.1 spec/lib/payanyway/request/pay_spec.rb
payanyway-2.3.0 spec/lib/payanyway/request/pay_spec.rb
payanyway-2.2.2 spec/lib/payanyway/request/pay_spec.rb
payanyway-2.2.1 spec/lib/payanyway/request/pay_spec.rb
payanyway-2.2.0 spec/lib/payanyway/request/pay_spec.rb
payanyway-2.1.0 spec/lib/payanyway/request/pay_spec.rb
payanyway-2.0.2 spec/lib/payanyway/request/pay_spec.rb
payanyway-2.0.1 spec/lib/payanyway/request/pay_spec.rb