Skip to content
Browse files

magic comment test only if encoding_aware?.

  • Loading branch information...
1 parent 67d76f4 commit 3d2bda9601d3a45f62ad5b7930e453bd1eb01583 @arunagw arunagw committed with fxn
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 3d2bda9

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