Skip to content
This repository
Browse code

skiping magic comment test. checking encoding_aware?

Loading AS encoding.
  • Loading branch information...
commit b0334dbe4705c855bd7fc1f2de1b7e0102d67b05 1 parent 553d9ea
Arun Agrawal authored July 31, 2011
9  activerecord/test/cases/schema_dumper_test.rb
... ...
@@ -1,5 +1,5 @@
1 1
 require "cases/helper"
2  
-require 'stringio'
  2
+require 'active_support/core_ext/string/encoding'
3 3
 
4 4
 
5 5
 class SchemaDumperTest < ActiveRecord::TestCase
@@ -14,9 +14,10 @@ def standard_dump
14 14
     @stream.string
15 15
   end
16 16
 
17  
-  def test_magic_comment
18  
-    skip "only test magic comments on 1.9" if RUBY_VERSION < '1.9'
19  
-    assert_match "# encoding: #{@stream.external_encoding.name}", standard_dump
  17
+  if "string".encoding_aware?
  18
+    def test_magic_comment
  19
+      assert_match "# encoding: #{@stream.external_encoding.name}", standard_dump
  20
+    end
20 21
   end
21 22
 
22 23
   def test_schema_dump

0 notes on commit b0334db

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