diff options
author | Manfred Stienstra <manfred@fngtps.com> | 2008-09-21 17:21:30 +0200 |
---|---|---|
committer | Manfred Stienstra <manfred@fngtps.com> | 2008-09-21 17:21:30 +0200 |
commit | 22f75d539dca7b6f33cbf86e4e9d1944bb22731f (patch) | |
tree | f3c775cda7f82f5b527864adc363deb3c5eee354 /activesupport/test/abstract_unit.rb | |
parent | 5f83e1844c83c19cf97c6415b943c6ec3cb4bb06 (diff) | |
download | rails-22f75d539dca7b6f33cbf86e4e9d1944bb22731f.tar.gz rails-22f75d539dca7b6f33cbf86e4e9d1944bb22731f.tar.bz2 rails-22f75d539dca7b6f33cbf86e4e9d1944bb22731f.zip |
Simplify ActiveSupport::Multibyte and make it run on Ruby 1.9.
* Unicode methods are now defined directly on Chars instead of a handler
* Updated Unicode database to Unicode 5.1.0
* Improved documentation
Diffstat (limited to 'activesupport/test/abstract_unit.rb')
-rw-r--r-- | activesupport/test/abstract_unit.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb index cce8d5d220..f39f264ae1 100644 --- a/activesupport/test/abstract_unit.rb +++ b/activesupport/test/abstract_unit.rb @@ -1,9 +1,15 @@ +# encoding: utf-8 + require 'test/unit' $:.unshift "#{File.dirname(__FILE__)}/../lib" $:.unshift File.dirname(__FILE__) require 'active_support' +if RUBY_VERSION < '1.9' + $KCODE = 'UTF8' +end + def uses_gem(gem_name, test_name, version = '> 0') require 'rubygems' gem gem_name.to_s, version @@ -21,4 +27,4 @@ unless defined? uses_mocha end # Show backtraces for deprecated behavior for quicker cleanup. -ActiveSupport::Deprecation.debug = true +ActiveSupport::Deprecation.debug = true
\ No newline at end of file |