Skip to content

Commit

Permalink
making yaml tests less specific to emitter. [#4425 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information
tenderlove authored and wycats committed Apr 17, 2010
1 parent cd6578f commit d92e311
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/test/cases/base_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit d92e311

Please sign in to comment.