xhr :req_method, :path, :parameters, :headers
xhr :get, '/users/new' # new user action
xhr :delete, '/users/20' # delete user
In integration test, you need to specify full path to make it work.
Incase of Functional test, we can simply specify the name of action.
Cheers,
Vadivelan.K
No comments:
Post a Comment