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

Version Path
moneta-api-2.1.0 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-2.0.0 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-2.0.0.rc2 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-2.0.0.rc1 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.13.0 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.8 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.7 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.6 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.5 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.4 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.3 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.2 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.1 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.12.0 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.11.0 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb
moneta-api-1.10.0 spec/lib/moneta/api/requests/approve_phone_apply_code_request_spec.rb