Sha256: 6e3315d35495ad2fdf674d7d773fdfff9495627d471b44d235738b039edfe0ba
Contents?: true
Size: 1 KB
Versions: 17
Compression:
Stored size: 1 KB
Contents
require 'test_helper' class HoldingTest < Test::Unit::TestCase def setup @record_id = "aleph002895625" end def test_new_holding holding = Exlibris::Primo::Holding.new :record_id => @record_id, :original_id => @record_id, :title => "Holding Title", :author => "Holding Author", :display_type => "Book" assert_equal "aleph002895625", holding.record_id assert_equal "aleph002895625", holding.original_id assert_equal "Holding Title", holding.title assert_equal "Holding Author", holding.author assert_equal "Book", holding.display_type assert_equal([], holding.coverage) assert_nil(holding.source_config) assert_nil(holding.source_class) assert_equal({}, holding.source_data) assert_equal(holding, holding.to_source) assert_equal([holding], holding.expand) assert((not holding.eql?(Exlibris::Primo::Holding.new))) assert(holding.eql?(holding)) assert_equal(holding, holding.merge!(holding)) assert(holding.expand.include?(holding)) end end
Version data entries
17 entries across 17 versions & 1 rubygems