making yaml tests less specific to emitter. [#4425 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
This commit is contained in:
parent
cd6578f6a1
commit
d92e3111fe
@ -2095,7 +2095,8 @@ def test_to_xml
|
||||
assert_equal written_on_in_current_timezone, xml.elements["//written-on"].text
|
||||
assert_equal "datetime" , xml.elements["//written-on"].attributes['type']
|
||||
|
||||
assert_equal "--- Have a nice day\n" , xml.elements["//content"].text
|
||||
assert_match(/^--- Have a nice day\n/ , xml.elements["//content"].text)
|
||||
assert_equal 'Have a nice day' , YAML.load(xml.elements["//content"].text)
|
||||
assert_equal "yaml" , xml.elements["//content"].attributes['type']
|
||||
|
||||
assert_equal "david@loudthinking.com", xml.elements["//author-email-address"].text
|
||||
|
Loading…
Reference in New Issue
Block a user