Sha256: 8025a8415848cee59e2b7724db4830204acd1fd1aa482fbd73c9e037278ba390
Contents?: true
Size: 671 Bytes
Versions: 25
Compression:
Stored size: 671 Bytes
Contents
module WebService module Request require 'test_helper' class BuildXmlTest < Test::Unit::TestCase def setup @base_url = "http://bobcatdev.library.nyu.edu" @institution = "University" @group = "Department" end def test_request_build_xml search_request = Exlibris::Primo::WebService::Request::Search.new :base_url => @base_url element = search_request.send :build_xml do |xml| xml.outer { xml.inner "value" } end assert_kind_of String, element assert_equal "<outer><inner>value</inner></outer>", element end end end end
Version data entries
25 entries across 25 versions & 1 rubygems