Sha256: e2b645b8307ab0826fad38556662f4adcd7e04c9c594c133af062f52ab1aa32b

Contents?: true

Size: 495 Bytes

Versions: 6

Compression:

Stored size: 495 Bytes

Contents

describe Moneta::Api::Requests::ApprovePhoneSendConfirmationRequest, vcr: true do
  include_context 'moneta'

  let(:unit_id) { 42868 }
  let(:request) { described_class.new }
  let(:response) { service.approve_phone_send_confirmation(request) }
  let(:text) { 'Ваш код для подтверждения {CODE}' }
  let(:params) { { unit_id: unit_id, text: text } }

  before { request.fill(params) }

  subject { response }

  its(:phone_number) { is_expected.to eq('+79520348677') }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
moneta-api-1.11.0 spec/lib/moneta/api/requests/approve_phone_send_confirmation_request_spec.rb
moneta-api-1.10.0 spec/lib/moneta/api/requests/approve_phone_send_confirmation_request_spec.rb
moneta-api-1.9.0 spec/lib/moneta/api/requests/approve_phone_send_confirmation_request_spec.rb
moneta-api-1.8.0 spec/lib/moneta/api/requests/approve_phone_send_confirmation_request_spec.rb
moneta-api-1.7.0 spec/lib/moneta/api/requests/approve_phone_send_confirmation_request_spec.rb
moneta-api-1.6.0 spec/lib/moneta/api/requests/approve_phone_send_confirmation_request_spec.rb