rails get controller javascript response minitest capybara

Multi tool use
rails get controller javascript response minitest capybara
In my controller method I'm returning a call to a Javascript Method in my view like so:
render :js => "myJSMethod('#{value}');"
This works fine in development, production etc...but how can I access this response in my tests?
I'd like to be able to do something like this in my test
page.execute_script(response);
But I've been unable to access the response.
I'm using minitest with capybara and selenium
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.