Permalink
Browse files

magic comment test only if encoding_aware?.

  • Loading branch information...
1 parent 2b925e8 commit 329409decdcbaa80695b7b65a6252e70a829091d @arunagw arunagw committed Jul 30, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 activerecord/test/cases/schema_dumper_test.rb
View
7 activerecord/test/cases/schema_dumper_test.rb
@@ -14,9 +14,10 @@ def standard_dump
@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

0 comments on commit 329409d

Please sign in to comment.