Sha256: c2059767ffe446332c82f284f430da1026bb3d53c7d1cd616ea7b6a526b1b710
Contents?: true
Size: 620 Bytes
Versions: 16
Compression:
Stored size: 620 Bytes
Contents
describe Moneta::Api::Requests::ApprovePhoneApplyCodeRequest, vcr: true do include_context 'moneta' let(:unit_id) { 42868 } let(:request) { described_class.new } let(:response) { service.approve_phone_apply_code(request) } let(:confirmation_code) { 123456 } let(:params) { { unit_id: unit_id, confirmation_code: confirmation_code } } before { request.fill(params) } subject { response } context 'when code invalid' do let(:confirmation_code) { 123456 } it { expect { subject }.to raise_error(Moneta::Api::RuntimeException, 'Неверный код подтверждения') } end end
Version data entries
16 entries across 16 versions & 1 rubygems