Sha256: 249a808a7d03d106d4afb32842b4d88190ca86b69d15d72a2e8a2d840fdaa094

Contents?: true

Size: 559 Bytes

Versions: 6

Compression:

Stored size: 559 Bytes

Contents

describe Payanyway::Request::Pay do
  let(:service) { described_class.new(params) }
  let(:params) do
    {
      'MNT_ID'             => 1,
      '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

6 entries across 6 versions & 1 rubygems

Version Path
payanyway-2.0.0 spec/lib/payanyway/request/pay_spec.rb
payanyway-1.2.6 spec/lib/payanyway/request/pay_spec.rb
payanyway-1.2.5 spec/lib/payanyway/request/pay_spec.rb
payanyway-1.2.3 spec/lib/payanyway/request/pay_spec.rb
payanyway-1.2.4 spec/lib/payanyway/request/pay_spec.rb
payanyway-1.2.2 spec/lib/payanyway/request/pay_spec.rb