diff options
Diffstat (limited to 'activerecord/test/fixtures_test.rb')
-rwxr-xr-x | activerecord/test/fixtures_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/fixtures_test.rb b/activerecord/test/fixtures_test.rb index e33d12e703..2f88feda3f 100755 --- a/activerecord/test/fixtures_test.rb +++ b/activerecord/test/fixtures_test.rb @@ -344,6 +344,15 @@ class InvalidTableNameFixturesTest < Test::Unit::TestCase end end +class CheckEscapedYamlFixturesTest < Test::Unit::TestCase + set_fixture_class :funny_jokes => 'Joke' + fixtures :funny_jokes + + def test_proper_escaped_fixture + assert_equal "The \\n Aristocrats\nAte the candy\n", funny_jokes(:another_joke).name + end +end + class DevelopersProject; end; class ManyToManyFixturesWithClassDefined < Test::Unit::TestCase |