diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-18 14:14:46 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-18 14:14:46 -0700 |
commit | 2d65ff5af7c57f2b66782d40e380a33904d02bce (patch) | |
tree | 2eec76902a52819e2300f11428bd41b0b510a9ae /actionpack/test/controller | |
parent | 6b50bfb0f08b979a0dbd0914443a9d8aafc6cf0a (diff) | |
download | rails-2d65ff5af7c57f2b66782d40e380a33904d02bce.tar.gz rails-2d65ff5af7c57f2b66782d40e380a33904d02bce.tar.bz2 rails-2d65ff5af7c57f2b66782d40e380a33904d02bce.zip |
removing some warnings
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/assert_select_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb index 2600dae3c5..8c2129b00f 100644 --- a/actionpack/test/controller/assert_select_test.rb +++ b/actionpack/test/controller/assert_select_test.rb @@ -729,7 +729,7 @@ EOF end def render_rjs(&block) - @controller.response_with &block + @controller.response_with(&block) get :rjs end diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 84b796ba72..a83f5155f8 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -637,7 +637,7 @@ class FragmentCachingTest < ActionController::TestCase @store.write('views/another_name', 'another_value') @store.write('views/primalgrasp', 'will not expire ;-)') - @controller.expire_fragment /name/ + @controller.expire_fragment(/name/) assert_nil @store.read('views/name') assert_nil @store.read('views/another_name') @@ -727,22 +727,22 @@ CACHED def test_fragment_caching_in_partials get :html_fragment_cached_with_partial assert_response :success - assert_match /Old fragment caching in a partial/, @response.body + assert_match(/Old fragment caching in a partial/, @response.body) assert_match "Old fragment caching in a partial", @store.read('views/test.host/functional_caching/html_fragment_cached_with_partial') end def test_render_inline_before_fragment_caching get :inline_fragment_cached assert_response :success - assert_match /Some inline content/, @response.body - assert_match /Some cached content/, @response.body + assert_match(/Some inline content/, @response.body) + assert_match(/Some cached content/, @response.body) assert_match "Some cached content", @store.read('views/test.host/functional_caching/inline_fragment_cached') end def test_fragment_caching_in_rjs_partials xhr :get, :js_fragment_cached_with_partial assert_response :success - assert_match /Old fragment caching in a partial/, @response.body + assert_match(/Old fragment caching in a partial/, @response.body) assert_match "Old fragment caching in a partial", @store.read('views/test.host/functional_caching/js_fragment_cached_with_partial') end |