diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_const.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_const.rb b/test/ruby/test_const.rb index 31adb2a0ce..dab45b7e08 100644 --- a/test/ruby/test_const.rb +++ b/test/ruby/test_const.rb @@ -1,3 +1,4 @@ +# -*- coding: us-ascii -*- require 'test/unit' class TestConst < Test::Unit::TestCase @@ -50,7 +51,7 @@ class TestConst < Test::Unit::TestCase c = Class.new c.const_set(:X, 1) assert_output(nil, <<-WARNING) {c.const_set(:X, 2)} -#{__FILE__}:#{__LINE__-1}: warning: already initialized constant X +#{__FILE__}:#{__LINE__-1}: warning: already initialized constant #{c}::X #{__FILE__}:#{__LINE__-3}: warning: previous definition of X was here WARNING end |