spec/helpers/webmock_helper.rb in openid_connect-0.8.1 vs spec/helpers/webmock_helper.rb in openid_connect-0.8.2

- old
+ new

@@ -16,16 +16,14 @@ private def request_for(method, options = {}) request = {} - if options[:params] - case method - when :post, :put - request[:body] = options[:params] - else - request[:query] = options[:params] - end + case method + when :post, :put + request[:body] = options[:params] + else + request[:query] = options[:params] end if options[:request_header] request[:headers] = options[:request_header] end request \ No newline at end of file