diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-07-30 09:19:58 +0530 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:25 -0700 |
commit | 3d2bda9601d3a45f62ad5b7930e453bd1eb01583 (patch) | |
tree | 338b92d1ebdfe82fa7e61f239d976162ba8746c1 /activerecord/test/cases/schema_dumper_test.rb | |
parent | 67d76f43a047a24c3bfcdde7a81257e5cdfa65be (diff) | |
download | rails-3d2bda9601d3a45f62ad5b7930e453bd1eb01583.tar.gz rails-3d2bda9601d3a45f62ad5b7930e453bd1eb01583.tar.bz2 rails-3d2bda9601d3a45f62ad5b7930e453bd1eb01583.zip |
magic comment test only if encoding_aware?.
Diffstat (limited to 'activerecord/test/cases/schema_dumper_test.rb')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index 5da3f59a1f..99e7ef6c03 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -14,9 +14,10 @@ class SchemaDumperTest < ActiveRecord::TestCase @stream.string end - def test_magic_comment - skip "only test magic comments on 1.9" if RUBY_VERSION < '1.9' - assert_match "# encoding: #{@stream.external_encoding.name}", standard_dump + if "string".encoding_aware? + def test_magic_comment + assert_match "# encoding: #{@stream.external_encoding.name}", standard_dump + end end def test_schema_dump |