@@ -284,34 +284,34 @@ def test_action_cache_with_layout_and_layout_cache_false
284
284
end
285
285
286
286
def test_action_cache_with_layout_and_layout_cache_false_via_proc
287
- get :with_layout_proc_param , params : { layout : false }
288
287
draw do
289
288
get '/action_caching_test/with_layout_proc_param' , to : 'action_caching_test#with_layout_proc_param'
290
289
end
291
290
291
+ get :with_layout_proc_param , params : { layout : 'false' }
292
292
assert_response :success
293
293
cached_time = content_to_cache
294
294
assert_not_equal cached_time , @response . body
295
295
assert fragment_exist? ( 'hostname.com/action_caching_test/with_layout_proc_param' )
296
296
297
- get :with_layout_proc_param , params : { layout : false }
297
+ get :with_layout_proc_param , params : { layout : ' false' }
298
298
assert_response :success
299
299
assert_not_equal cached_time , @response . body
300
300
assert_equal cached_time , read_fragment ( 'hostname.com/action_caching_test/with_layout_proc_param' )
301
301
end
302
302
303
303
def test_action_cache_with_layout_and_layout_cache_true_via_proc
304
- get :with_layout_proc_param , params : { layout : true }
305
304
draw do
306
305
get '/action_caching_test/with_layout_proc_param' , to : 'action_caching_test#with_layout_proc_param'
307
306
end
308
307
308
+ get :with_layout_proc_param , params : { layout : 'true' }
309
309
assert_response :success
310
310
cached_time = content_to_cache
311
311
assert_not_equal cached_time , @response . body
312
312
assert fragment_exist? ( 'hostname.com/action_caching_test/with_layout_proc_param' )
313
313
314
- get :with_layout_proc_param , params : { layout : true }
314
+ get :with_layout_proc_param , params : { layout : ' true' }
315
315
assert_response :success
316
316
assert_not_equal cached_time , @response . body
317
317
assert_equal @response . body , read_fragment ( 'hostname.com/action_caching_test/with_layout_proc_param' )
0 commit comments