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