Skip to content

Commit 5ffb5ce

Browse files
committed
Break lambda arity test in to two parts
Looks like the test request object isn't being recycled properly and is leaking information from one request to the next about formats.
1 parent 07368c1 commit 5ffb5ce

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/caching_test.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,16 +811,21 @@ def test_explicit_html_format_is_used_for_fragment_path
811811
assert_not_cached cached_time
812812
end
813813

814-
def test_lambda_arity
814+
def test_lambda_arity_with_cache_path
815815
draw do
816816
get "/action_caching_test/not_url_cache_path_no_args", to: "action_caching_test#not_url_cache_path_no_args"
817-
get "/action_caching_test/with_layout_proc_param_no_args", to: "action_caching_test#with_layout_proc_param_no_args"
818817
end
819818

820819
get :not_url_cache_path_no_args
821820
assert_response :success
822821
assert !fragment_exist?("test.host/action_caching_test/not_url_cache_path_no_args")
823822
assert fragment_exist?("not_url_cache_path_no_args_key")
823+
end
824+
825+
def test_lambda_arity_with_layout
826+
draw do
827+
get "/action_caching_test/with_layout_proc_param_no_args", to: "action_caching_test#with_layout_proc_param_no_args"
828+
end
824829

825830
get :with_layout_proc_param_no_args, params: { title: "Request 1", layout: "false" }
826831
assert_response :success

0 commit comments

Comments
 (0)