aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/dependencies_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-03-02 09:18:05 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-03-02 09:18:05 -0800
commit66245441d4471f29043433f6cf789498cf35b96c (patch)
treef3ac7db0c59f00d36baa7a82a006c7fd4cf0c135 /activesupport/test/dependencies_test.rb
parent2ee55557440a644453482a678e4ff08a4b5ebd3e (diff)
downloadrails-66245441d4471f29043433f6cf789498cf35b96c.tar.gz
rails-66245441d4471f29043433f6cf789498cf35b96c.tar.bz2
rails-66245441d4471f29043433f6cf789498cf35b96c.zip
adding backwards compat for class cache references. <3<3
Diffstat (limited to 'activesupport/test/dependencies_test.rb')
-rw-r--r--activesupport/test/dependencies_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb
index b3ada53497..bc7f597f1d 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -479,13 +479,13 @@ class DependenciesTest < Test::Unit::TestCase
with_loading 'dependencies' do
c = ActiveSupport::Dependencies.ref("ServiceOne")
service_one_first = ServiceOne
- assert_equal service_one_first, c.get("ServiceOne")
+ assert_equal service_one_first, c.get
ActiveSupport::Dependencies.clear
assert ! defined?(ServiceOne)
service_one_second = ServiceOne
- assert_not_equal service_one_first, c.get("ServiceOne")
- assert_equal service_one_second, c.get("ServiceOne")
+ assert_not_equal service_one_first, c.get
+ assert_equal service_one_second, c.get
end
end