Sha256: 8a7ba16e8553a5e1a34cd94ba06da3f6567c7f0fd6ab7f04f533df457686f62d
Contents?: true
Size: 855 Bytes
Versions: 14
Compression:
Stored size: 855 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Ipizza::AuthenticationResponse do before(:each) do @resp1 = Ipizza::AuthenticationResponse.new({'VK_INFO' => 'NIMI:tõõger , LeõpäöldžŽšŠ;ISIK:35511280268'}) @resp2 = Ipizza::AuthenticationResponse.new({'VK_INFO' => 'ISIK:35511280268;NIMI:tõõger , LeõpäöldžŽšŠ'}) end describe '#info_social_security_id' do it 'should get user social security id from the response' do @resp1.info_social_security_id.should == '35511280268' @resp2.info_social_security_id.should == '35511280268' end end describe '#info_name' do it 'should get user name from the response' do @resp1.info_name.should == 'tõõger , LeõpäöldžŽšŠ' @resp2.info_name.should == 'tõõger , LeõpäöldžŽšŠ' end end end
Version data entries
14 entries across 14 versions & 1 rubygems