Sha256: 8d4b475f542383de4f96bf131599c04a3bc795b79e4b86ba4bf290571ba7ea38

Contents?: true

Size: 548 Bytes

Versions: 10

Compression:

Stored size: 548 Bytes

Contents

module Pnx
  require 'test_helper'
  class FrbrTest < Test::Unit::TestCase
    def test_frbr
      record = Exlibris::Primo::Record.new(:raw_xml => record_xml)
      assert record.frbr?
      assert_not_nil record.frbr_id
      assert((not record.frbr_id.blank?))
      assert_equal "49340863", record.frbr_id
    end

    def test_invalid_frbr
      record = Exlibris::Primo::Record.new(:raw_xml => record_invalid_frbr_xml)
      assert_equal false,record.frbr?
      assert_nil record.frbr_id
      assert(record.frbr_id.blank?)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 test/pnx/frbr_test.rb
exlibris-primo-2.1.0 test/pnx/frbr_test.rb
exlibris-primo-2.0.0 test/pnx/frbr_test.rb
exlibris-primo-1.1.9 test/pnx/frbr_test.rb
exlibris-primo-1.1.8 test/pnx/frbr_test.rb
exlibris-primo-1.1.7 test/pnx/frbr_test.rb
exlibris-primo-1.1.6 test/pnx/frbr_test.rb
exlibris-primo-1.1.5 test/pnx/frbr_test.rb
exlibris-primo-1.1.4 test/pnx/frbr_test.rb
exlibris-primo-1.1.3 test/pnx/frbr_test.rb