1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

making yaml tests less specific to emitter. [#4425 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
This commit is contained in:
Aaron Patterson 2010-04-16 21:35:10 -07:00 committed by wycats
parent cd6578f6a1
commit d92e3111fe

View file

@ -2095,7 +2095,8 @@ class BasicsTest < ActiveRecord::TestCase
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