mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
magic comment test only if encoding_aware?.
This commit is contained in:
committed by
Xavier Noria
parent
67d76f43a0
commit
3d2bda9601
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user