Permalink
Browse files

Use broken YAML that will fail with Syck as well as Psych. Fixes test…

…_broken_yaml_exception in fixtures_test.rb on Ruby 1.8.7.

Cherry-pick from 3-1-stable: b8d4692

Conflicts:

	activerecord/test/cases/fixtures_test.rb
  • Loading branch information...
1 parent de44773 commit 961b4a004230f078b99cfdf701d263fa6653cdb1 @jonleighton jonleighton committed Sep 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/fixtures_test.rb
@@ -48,7 +48,7 @@ def test_clean_fixtures
def test_broken_yaml_exception
badyaml = Tempfile.new ['foo', '.yml']
- badyaml.write 'a: !ruby.yaml.org,2002:str |\nfoo'
+ badyaml.write 'a: : '
badyaml.flush
dir = File.dirname badyaml.path

0 comments on commit 961b4a0

Please sign in to comment.