Skip to content

Commit

Permalink
Fix incorrect validation tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Savage committed May 24, 2011
1 parent 80c5ee0 commit f49e226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/model/shiporder.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shiporder orderid="889923"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="shiporder.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="shiporder.xsd">
<orderperson>John Smith</orderperson>
<shipto>
<name>Ola Nordmann</name>
Expand Down
2 changes: 1 addition & 1 deletion test/tc_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def teardown

def schema
document = XML::Document.file(File.join(File.dirname(__FILE__), 'model/shiporder.xsd'))
schema = XML::Schema.document(document)
XML::Schema.document(document)
end

def test_from_doc
Expand Down

0 comments on commit f49e226

Please sign in to comment.