Sha256: 022d918d9af08db1921d792cadb394d196225efc0cad7dbe56eab393c69a7a26
Contents?: true
Size: 793 Bytes
Versions: 11
Compression:
Stored size: 793 Bytes
Contents
require 'spec_helper' module Afipws describe PersonaServiceA4 do let(:ta) { {token: 't', sign: 's'} } let(:ws) { PersonaServiceA4.new(cuit: '12345678912').tap { |ws| ws.wsaa.stubs auth: ta } } let(:message) { ta.merge cuitRepresentada: '12345678912' } context 'métodos API' do it 'dummy' do savon.expects(:dummy).returns(fixture('ws_sr_padron_a4/dummy/success')) ws.dummy.should == { appserver: 'OK', authserver: 'OK', dbserver: 'OK' } end it 'get_persona' do savon.expects(:get_persona) .with(message: message.merge(idPersona: '98765432198')) .returns(fixture('ws_sr_padron_a4/get_persona/success')) ws.get_persona('98765432198').should include apellido: 'ERNESTO DANIEL' end end end end
Version data entries
11 entries across 11 versions & 1 rubygems