You can passIf you really need this kind of scenario, you have to use the query string with postRails URI pattern instead of only specifying action name in the post statement like below,
post :post'/documents/create_new_doc', params: {same_key: 'value_in_body'} # params: is required for Rails 4.2 and after Note: Get the exact URI pattern from rake routes