You can send xhr requests in your rspec tests by using xhr
instead of get
or post
followed by a symbol of the submission method like this: xhr :get, :index, :id = 10
Posted by Jonathan Knapp to Knowledge is Power! (2012-03-22 18:57)
You can send xhr requests in your rspec tests by using xhr
instead of get
or post
followed by a symbol of the submission method like this: xhr :get, :index, :id = 10