Sha256: e184db5bac1f4e403d93a0dfdf9b51390cf2b79b8ed28f6486091935cef4a42f
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
require 'spec_helper' module Exlibris module Aleph module API module Client class Patron describe Address, vcr: {cassette_name: 'patron', record: :new_episodes} do let(:patron_id) { 'BOR_ID' } subject(:address) { Address.new(patron_id) } it { should be_a Address } describe '#patron_id' do subject { address.patron_id } it { should eq patron_id } end describe '#reply_code' do subject { address.reply_code } it { should eq '0000' } end describe '#reply_text' do subject { address.reply_text } it { should eq 'ok' } end describe '#error?' do subject { address.error? } it { should be_false } end describe '#to_h' do subject { address.to_h } it { should be_a Hash } end describe '#to_xml' do subject { address.to_xml } it { should be_a String } end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems