diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-01 11:06:47 +0100 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-02 17:50:12 -0800 |
commit | b540eca5889d7a28fac39c9ec0df715aa89487ce (patch) | |
tree | 76a8ef40d8a9e99f1dc36a5b526b9a4c9c62567c /activesupport/test/core_ext/object_ext_test.rb | |
parent | 8935854375a6c08acd617beaec30f6fd09a29ea0 (diff) | |
download | rails-b540eca5889d7a28fac39c9ec0df715aa89487ce.tar.gz rails-b540eca5889d7a28fac39c9ec0df715aa89487ce.tar.bz2 rails-b540eca5889d7a28fac39c9ec0df715aa89487ce.zip |
Consolidate Object#to_param and #to_query core extensions
Diffstat (limited to 'activesupport/test/core_ext/object_ext_test.rb')
-rw-r--r-- | activesupport/test/core_ext/object_ext_test.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/test/core_ext/object_ext_test.rb b/activesupport/test/core_ext/object_ext_test.rb index 484eecaab6..04c19ed2aa 100644 --- a/activesupport/test/core_ext/object_ext_test.rb +++ b/activesupport/test/core_ext/object_ext_test.rb @@ -1,16 +1,9 @@ require 'abstract_unit' require 'active_support/core_ext/object/metaclass' -require 'active_support/core_ext/object/conversions' class ObjectExtTest < Test::Unit::TestCase def test_tap_yields_and_returns_self foo = Object.new assert_equal foo, foo.tap { |x| assert_equal foo, x; :bar } end - - def test_to_param - foo = Object.new - foo.class_eval("def to_s; 'foo'; end") - assert_equal 'foo', foo.to_param - end end |