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

Version Path
ipizza-1.0.0 spec/ipizza/authentication_response_spec.rb
ipizza-0.7.1 spec/ipizza/authentication_response_spec.rb
ipizza-0.6.1 spec/ipizza/authentication_response_spec.rb
ipizza-0.5.5 spec/ipizza/authentication_response_spec.rb
ipizza-0.5.4 spec/ipizza/authentication_response_spec.rb
ipizza-0.5.3 spec/ipizza/authentication_response_spec.rb
ipizza-0.5.2 spec/ipizza/authentication_response_spec.rb
ipizza-0.5.1 spec/ipizza/authentication_response_spec.rb
ipizza-0.5.0 spec/ipizza/authentication_response_spec.rb
ipizza-0.4.4 spec/ipizza/authentication_response_spec.rb
ipizza-0.4.3 spec/ipizza/authentication_response_spec.rb
ipizza-0.4.2 spec/ipizza/authentication_response_spec.rb
ipizza-0.4.1 spec/ipizza/authentication_response_spec.rb
ipizza-0.4.0 spec/ipizza/authentication_response_spec.rb