rails get controller javascript response minitest capybara

Multi tool use
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.

qMz7SesOkNTXg1zw9t7pbZSEygf
hEf1AJa9tQPNaK x

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications