From 3ef98a1439aa3009f3c641652e2f19e3522543fb Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 15 Jul 2014 15:24:23 -0700 Subject: fix warnings --- actionpack/test/abstract_unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index d027f1a88d..59a23a5e4b 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -318,7 +318,7 @@ module ActionDispatch def request_path_params(path, method: 'GET') resp = send_request URI('http://localhost' + path), method.to_s.upcase, nil - status, headers, body = *resp + status = resp.first if status == 404 raise ActionController::RoutingError, "No route matches #{path.inspect}" end -- cgit v1.2.3