diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-12-07 14:13:56 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-12-07 14:13:56 -0500 |
commit | 6ee03a40bbb95c68d7517098b1e215f08ad82fb5 (patch) | |
tree | 93aa00f23c48b948bbc7d2604cc8339452bced57 /activesupport/test | |
parent | 7b50dc5316f1db83b2d138a12bb0b0ab5ea90a33 (diff) | |
download | rails-6ee03a40bbb95c68d7517098b1e215f08ad82fb5.tar.gz rails-6ee03a40bbb95c68d7517098b1e215f08ad82fb5.tar.bz2 rails-6ee03a40bbb95c68d7517098b1e215f08ad82fb5.zip |
Rename ActiveSupport::BasicObject to ActiveSupport::ProxyObject
AS::BasicObject is used for proxy classes. Let's give it a less concerning
name. Also, it avoids the confusion with Ruby's Basic Object.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/duration_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb index c8312aa653..2826f51f2d 100644 --- a/activesupport/test/core_ext/duration_test.rb +++ b/activesupport/test/core_ext/duration_test.rb @@ -21,7 +21,7 @@ class DurationTest < ActiveSupport::TestCase assert ActiveSupport::Duration === 1.day assert !(ActiveSupport::Duration === 1.day.to_i) assert !(ActiveSupport::Duration === 'foo') - assert !(ActiveSupport::Duration === ActiveSupport::BasicObject.new) + assert !(ActiveSupport::Duration === ActiveSupport::ProxyObject.new) end def test_equals @@ -131,7 +131,7 @@ class DurationTest < ActiveSupport::TestCase assert_equal Time.local(2009,3,29,0,0,0) + 1.day, Time.local(2009,3,30,0,0,0) end end - + def test_delegation_with_block_works counter = 0 assert_nothing_raised do |