Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Move invalid XML examples to their own subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
hadleynet committed Mar 30, 2012
1 parent 15810f7 commit 012f17e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
File renamed without changes.
10 changes: 5 additions & 5 deletions test/unit/parse_error_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class ParseErrorTest < Test::Unit::TestCase

def test_unknown_demographic
hqmf_contents = File.open("test/fixtures/unknown_demographic_entry.xml").read
hqmf_contents = File.open("test/fixtures/invalid/unknown_demographic_entry.xml").read
doc = Nokogiri::XML(hqmf_contents)
doc.root.add_namespace_definition('cda', 'urn:hl7-org:v3')
doc.root.add_namespace_definition('xsi', 'http://www.w3.org/2001/XMLSchema-instance')
Expand All @@ -14,7 +14,7 @@ def test_unknown_demographic
end

def test_unknown_criteria_type
hqmf_contents = File.open("test/fixtures/unknown_criteria_type.xml").read
hqmf_contents = File.open("test/fixtures/invalid/unknown_criteria_type.xml").read
doc = Nokogiri::XML(hqmf_contents)
doc.root.add_namespace_definition('cda', 'urn:hl7-org:v3')
doc.root.add_namespace_definition('xsi', 'http://www.w3.org/2001/XMLSchema-instance')
Expand All @@ -25,7 +25,7 @@ def test_unknown_criteria_type
end

def test_missing_id
hqmf_contents = File.open("test/fixtures/missing_id.xml").read
hqmf_contents = File.open("test/fixtures/invalid/missing_id.xml").read
doc = Nokogiri::XML(hqmf_contents)
doc.root.add_namespace_definition('cda', 'urn:hl7-org:v3')
doc.root.add_namespace_definition('xsi', 'http://www.w3.org/2001/XMLSchema-instance')
Expand All @@ -37,7 +37,7 @@ def test_missing_id
end

def test_unknown_value_type
hqmf_contents = File.open("test/fixtures/unknown_value_type.xml").read
hqmf_contents = File.open("test/fixtures/invalid/unknown_value_type.xml").read
doc = Nokogiri::XML(hqmf_contents)
doc.root.add_namespace_definition('cda', 'urn:hl7-org:v3')
doc.root.add_namespace_definition('xsi', 'http://www.w3.org/2001/XMLSchema-instance')
Expand All @@ -48,7 +48,7 @@ def test_unknown_value_type
end

def test_population_type
hqmf_contents = File.open("test/fixtures/unknown_population_type.xml").read
hqmf_contents = File.open("test/fixtures/invalid/unknown_population_type.xml").read
doc = Nokogiri::XML(hqmf_contents)
doc.root.add_namespace_definition('cda', 'urn:hl7-org:v3')
doc.root.add_namespace_definition('xsi', 'http://www.w3.org/2001/XMLSchema-instance')
Expand Down

0 comments on commit 012f17e

Please sign in to comment.