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:
parent
cd6578f6a1
commit
d92e3111fe
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue