diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-04-04 19:37:29 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-04-04 19:37:29 +0000 |
commit | e714b25723b674bb6d66af40ea9047166907616b (patch) | |
tree | 757a0368a8cef19d5c951d68162ea73dabb6edaa /activesupport/test/core_ext/symbol_test.rb | |
parent | 62dc792a484e6e62fb2fb87fd47819144c5e3301 (diff) | |
download | rails-e714b25723b674bb6d66af40ea9047166907616b.tar.gz rails-e714b25723b674bb6d66af40ea9047166907616b.tar.bz2 rails-e714b25723b674bb6d66af40ea9047166907616b.zip |
Update the diagnostics template skip the useless '<controller not set>' text.
Fix symbol extensions test case.
Clean paths inside of exception messages and traces.
Add Pathname.clean_within for cleaning all the paths inside of a string.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext/symbol_test.rb')
-rw-r--r-- | activesupport/test/core_ext/symbol_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/symbol_test.rb b/activesupport/test/core_ext/symbol_test.rb new file mode 100644 index 0000000000..fec504d9d1 --- /dev/null +++ b/activesupport/test/core_ext/symbol_test.rb @@ -0,0 +1,8 @@ +require 'test/unit' +require File.dirname(__FILE__) + '/../../lib/active_support/core_ext/symbol' + +class SymbolTests < Test::Unit::TestCase + def test_to_proc + assert_equal %w(one two three), [:one, :two, :three].map(&:to_s) + end +end |