How to test response from RJS

From a controller rendering and RJS template I get (by printing

window.location.href = “/management/53/questions?

I ma trying to test that response with:

assert_select ‘window.location.href’, “management”

I does not work. Do you know how I can test if there is that redirect
in an RJS response?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs