aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/text_helper_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-03-28 01:11:09 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-03-28 01:11:09 +0000
commit31199a9e4af79f5d609bc6446e40e5f4ac03bb61 (patch)
treed3a31dd39163a06cf58193627b5931874bfd4791 /actionpack/test/template/text_helper_test.rb
parent66f546644b52394a60f6c17cfb544f86aac3b824 (diff)
downloadrails-31199a9e4af79f5d609bc6446e40e5f4ac03bb61.tar.gz
rails-31199a9e4af79f5d609bc6446e40e5f4ac03bb61.tar.bz2
rails-31199a9e4af79f5d609bc6446e40e5f4ac03bb61.zip
Update description
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/text_helper_test.rb')
-rw-r--r--actionpack/test/template/text_helper_test.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index d1ef946f29..0333e974b8 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -1,9 +1,5 @@
-require 'test/unit'
+require File.dirname(__FILE__) + '/../abstract_unit'
require "#{File.dirname(__FILE__)}/../testing_sandbox"
-require File.dirname(__FILE__) + '/../../lib/action_view/helpers/text_helper'
-require File.dirname(__FILE__) + '/../../../activesupport/lib/active_support/core_ext/numeric' # for human_size
-require File.dirname(__FILE__) + '/../../../activesupport/lib/active_support/core_ext/hash' # for stringify_keys
-require File.dirname(__FILE__) + '/../../../activesupport/lib/active_support/core_ext/object.rb' # for blank?
class TextHelperTest < Test::Unit::TestCase
include ActionView::Helpers::TextHelper
@@ -29,6 +25,7 @@ class TextHelperTest < Test::Unit::TestCase
def test_truncate_multibyte_without_kcode
result = execute_in_sandbox(<<-'CODE')
+ require File.dirname(__FILE__) + '/../../activesupport/lib/active_support/core_ext/kernel'
require "#{File.dirname(__FILE__)}/../lib/action_view/helpers/text_helper"
include ActionView::Helpers::TextHelper
truncate("\354\225\210\353\205\225\355\225\230\354\204\270\354\232\224", 10)
@@ -42,6 +39,7 @@ class TextHelperTest < Test::Unit::TestCase
$KCODE = "u"
require 'jcode'
+ require File.dirname(__FILE__) + '/../../activesupport/lib/active_support/core_ext/kernel'
require "#{File.dirname(__FILE__)}/../lib/action_view/helpers/text_helper"
include ActionView::Helpers::TextHelper
truncate("\354\225\204\353\246\254\353\236\221 \354\225\204\353\246\254\353\236 \354\225\204\353\235\274\353\246\254\354\230\244", 10)