Sha256: dc0ea1e83aa53b41704e6e44698fed4ed95ad8211cd674239e1013c575c4e2d3

Contents?: true

Size: 599 Bytes

Versions: 25

Compression:

Stored size: 599 Bytes

Contents

module Pnx
  require 'test_helper'
  class ElementsTest < Test::Unit::TestCase
    def test_elements
      record = Exlibris::Primo::Record.new(:raw_xml => record_xml)
      assert record.respond_to? :display_title
      assert record.respond_to? :recordid
      assert record.respond_to? :all_search_isbn
      assert_equal "Travels with my aunt", record.display_title
      assert_equal "nyu_aleph000062856", record.recordid
      assert_kind_of Array, record.all_search_isbn
      assert_equal ["0143039008", "9780143039006", "9780143\"0390069"], 
        record.all_search_isbn
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 test/pnx/elements_test.rb
exlibris-primo-2.1.0 test/pnx/elements_test.rb
exlibris-primo-2.0.0 test/pnx/elements_test.rb
exlibris-primo-1.1.9 test/pnx/elements_test.rb
exlibris-primo-1.1.8 test/pnx/elements_test.rb
exlibris-primo-1.1.7 test/pnx/elements_test.rb
exlibris-primo-1.1.6 test/pnx/elements_test.rb
exlibris-primo-1.1.5 test/pnx/elements_test.rb
exlibris-primo-1.1.4 test/pnx/elements_test.rb
exlibris-primo-1.1.3 test/pnx/elements_test.rb
exlibris-primo-1.1.2 test/pnx/elements_test.rb
exlibris-primo-1.1.1 test/pnx/elements_test.rb
exlibris-primo-1.1.0 test/pnx/elements_test.rb
exlibris-primo-1.0.11 test/pnx/elements_test.rb
exlibris-primo-1.0.10 test/pnx/elements_test.rb
exlibris-primo-1.0.9 test/pnx/elements_test.rb
exlibris-primo-1.0.8 test/pnx/elements_test.rb
exlibris-primo-1.0.7 test/pnx/elements_test.rb
exlibris-primo-1.0.6 test/pnx/elements_test.rb
exlibris-primo-1.0.5 test/pnx/elements_test.rb