Skip to content

Commit

Permalink
Merge pull request #2358 from arunagw/test_fix_187_skip
Browse files Browse the repository at this point in the history
skiping magic comment test for < 1.9
  • Loading branch information
josevalim committed Jul 31, 2011
2 parents 853ca2e + 329409d commit 779d78d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions activerecord/test/cases/schema_dumper_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 779d78d

Please sign in to comment.