diff options
author | José Valim <jose.valim@gmail.com> | 2009-09-21 21:47:21 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-09-21 17:56:24 -0700 |
commit | 24074796031d76d3ac2f5f0078d75699cce1bc54 (patch) | |
tree | b7fd118165f29f4ce469b9d4ded1cbabb208a8dd /actionpack/test/controller | |
parent | 1bbb9b2db05730194edfd7d2cef9f5fcb9d79e50 (diff) | |
download | rails-24074796031d76d3ac2f5f0078d75699cce1bc54.tar.gz rails-24074796031d76d3ac2f5f0078d75699cce1bc54.tar.bz2 rails-24074796031d76d3ac2f5f0078d75699cce1bc54.zip |
Fixes Sam Ruby tests suite.
Signed-off-by: Yehuda Katz <wycats@gmail.com>
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index bd17df73c7..1a9f95e5e9 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -631,9 +631,8 @@ class FragmentCachingTest < ActionController::TestCase buffer = 'generated till now -> ' @controller.fragment_for(buffer, 'expensive') { fragment_computed = true } - assert_equal 2, listener.size - assert_equal :fragment_exist?, listener[0].name - assert_equal :write_fragment, listener[1].name + assert_equal 1, listener.count { |e| e.name == :fragment_exist? } + assert_equal 1, listener.count { |e| e.name == :write_fragment } assert fragment_computed assert_equal 'generated till now -> ', buffer |