diff options
author | José Valim <jose.valim@gmail.com> | 2011-07-31 04:25:25 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-07-31 04:25:25 -0700 |
commit | 779d78d5913b910cd83a081effd5adc508e8500b (patch) | |
tree | 9771333faae785a279d0eede2149564332b3781c /activerecord/test/cases/schema_dumper_test.rb | |
parent | 853ca2e4892a9a7569d6a4a851b58a82975f2769 (diff) | |
parent | 329409decdcbaa80695b7b65a6252e70a829091d (diff) | |
download | rails-779d78d5913b910cd83a081effd5adc508e8500b.tar.gz rails-779d78d5913b910cd83a081effd5adc508e8500b.tar.bz2 rails-779d78d5913b910cd83a081effd5adc508e8500b.zip |
Merge pull request #2358 from arunagw/test_fix_187_skip
skiping magic comment test for < 1.9
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 |