Skip to content
This repository
Browse code

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...
commit 961b4a004230f078b99cfdf701d263fa6653cdb1 1 parent de44773
Jon Leighton authored September 06, 2011
2  activerecord/test/cases/fixtures_test.rb
@@ -48,7 +48,7 @@ def test_clean_fixtures
48 48
 
49 49
   def test_broken_yaml_exception
50 50
     badyaml = Tempfile.new ['foo', '.yml']
51  
-    badyaml.write 'a: !ruby.yaml.org,2002:str |\nfoo'
  51
+    badyaml.write 'a: : '
52 52
     badyaml.flush
53 53
 
54 54
     dir  = File.dirname badyaml.path

0 notes on commit 961b4a0

Please sign in to comment.
Something went wrong with that request. Please try again.