diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-04-16 21:35:10 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-04-17 00:41:10 -0400 |
commit | d92e3111fed2a5372d4bb8ac66c9d8542f730488 (patch) | |
tree | 670f51f010a5f96ec9220029052f86fba0c27bc5 /activerecord/test | |
parent | cd6578f6a12e1b221a2d8a1e79e4c6f1209d874d (diff) | |
download | rails-d92e3111fed2a5372d4bb8ac66c9d8542f730488.tar.gz rails-d92e3111fed2a5372d4bb8ac66c9d8542f730488.tar.bz2 rails-d92e3111fed2a5372d4bb8ac66c9d8542f730488.zip |
making yaml tests less specific to emitter. [#4425 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/cases/base_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 591e04a077..2f4243a6aa 100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -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 |