Sha256: 2712d8ac330c37a1faac1e93abd3500adce67360933eb5a1596fa21aecef97a3

Contents?: true

Size: 676 Bytes

Versions: 25

Compression:

Stored size: 676 Bytes

Contents

require 'test_helper'
class ReviewTest < Test::Unit::TestCase
  def test_new_review
    assert_nothing_raised {
      review = Exlibris::Primo::Review.new(:raw_xml => "<Review><value>Testreview</value><docId>nyu_aleph000062856</docId><userId/><status>2</status><rating>1</rating><userDisplayName/><allowUserName>false</allowUserName></Review>")
      assert_equal "", review.user_id
      assert_equal "nyu_aleph000062856", review.record_id
      assert_equal "Testreview", review.value
      assert_equal "2", review.status
      assert_equal "1", review.rating
      assert_equal "", review.user_display_name
      assert_equal false, review.allow_user_name?
    }
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

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