Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 961b4a004230f078b99cfdf701d263fa6653cdb1 1 parent de44773
@jonleighton jonleighton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/fixtures_test.rb
View
2  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.
Something went wrong with that request. Please try again.