Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

3-0-stable schema dumper test fix #2374

Merged
merged 1 commit into from

2 participants

Arun Agrawal Santiago Pastorino
Arun Agrawal
Collaborator

Loading AS encoding.

Santiago Pastorino spastorino merged commit cb36585 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 31, 2011
  1. Arun Agrawal

    skiping magic comment test. checking encoding_aware?

    arunagw authored
    Loading AS encoding.
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 4 deletions.
  1. +5 −4 activerecord/test/cases/schema_dumper_test.rb
9 activerecord/test/cases/schema_dumper_test.rb
View
@@ -1,5 +1,5 @@
require "cases/helper"
-require 'stringio'
+require 'active_support/core_ext/string/encoding'
class SchemaDumperTest < ActiveRecord::TestCase
@@ -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
Something went wrong with that request. Please try again.