Sha256: e7d47308524028f05849604839e074900c17a882676908d6f96518e6b0cfe673
Contents?: true
Size: 842 Bytes
Versions: 9
Compression:
Stored size: 842 Bytes
Contents
require_relative '../../spec_helper' describe MangoPay::Client do include_context 'clients' describe 'CREATE' do it 'creates a new client' do expect(new_client['ClientId']).to eq(client_id) expect(new_client['Email']).not_to be_nil expect(new_client['Passphrase']).not_to be_nil end it 'refuses the client id' do expect { wrong_client['errors'] }.to raise_error { |err| err.should be_a MangoPay::ResponseError err.type.should eq 'param_error' } end it "ClientId_already_exist" do expect { MangoPay::Client.create({ 'ClientId' => new_client['ClientId'], 'Name' => 'What a nice name', 'Email' => 'clientemail@email.com' }) }.to raise_error MangoPay::ResponseError end end end
Version data entries
9 entries across 9 versions & 1 rubygems