mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Merge pull request #1997 from internetee/1976-autoload-schema-versions
Load latest version of an xsd schema by prefix
This commit is contained in:
commit
90b1bfca34
68 changed files with 566 additions and 483 deletions
|
@ -4,7 +4,7 @@ class EppResponseTest < ActiveSupport::TestCase
|
|||
def test_creates_new_response_from_xml_doc
|
||||
xml = <<-XML
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="lib/schemas/epp-ee-1.0.xsd">
|
||||
<epp xmlns="#{Xsd::Schema.filename(for_prefix: 'epp-ee')}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="lib/schemas/epp-ee-1.0.xsd">
|
||||
<response>
|
||||
<result code="1000">
|
||||
<msg>any</msg>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue