mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
39da1b6369
commit
3a47cf3395
212 changed files with 846 additions and 846 deletions
|
@ -334,7 +334,7 @@ class RNGValidation < Test::Unit::TestCase
|
|||
error( validator, %q{<A><B>XYZ</B></A>} )
|
||||
no_error( validator, %q{<A><B>Option 1</B></A>} )
|
||||
no_error( validator, %q{<A><B>Option 2</B></A>} )
|
||||
|
||||
|
||||
# Attribute values
|
||||
rng = %q{
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
@ -772,13 +772,13 @@ class RNGValidation < Test::Unit::TestCase
|
|||
error( validator, %q{<A><B/><B/></A>} )
|
||||
error( validator, %q{<A><C/></A>} )
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
def error( validator, source )
|
||||
parser = REXML::Parsers::TreeParser.new( source )
|
||||
parser.add_listener( validator.reset )
|
||||
assert_raise( REXML::Validation::ValidationException,
|
||||
assert_raise( REXML::Validation::ValidationException,
|
||||
"Expected a validation error" ) { parser.parse }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue