Sha256: fecaf0a906a430d043d9fb8bbedd723cb8e919b3e065cd4bdfde31602defc47b

Contents?: true

Size: 932 Bytes

Versions: 7

Compression:

Stored size: 932 Bytes

Contents

require 'test_helper'
class HoldingTest < Test::Unit::TestCase
  def setup
    @record_id = "aleph002895625"
  end

  def test_new_holding
    assert_nothing_raised {
      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.dedup?))
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
exlibris-primo-1.0.6 test/holding_test.rb
exlibris-primo-1.0.5 test/holding_test.rb
exlibris-primo-1.0.4 test/holding_test.rb
exlibris-primo-1.0.3 test/holding_test.rb
exlibris-primo-1.0.2 test/holding_test.rb
exlibris-primo-1.0.1 test/holding_test.rb
exlibris-primo-1.0.0 test/holding_test.rb