module Answers::Testing::ControllerMacros::Methods
Public Instance Methods
delete(action, options = {})
click to toggle source
Executes a request simulating DELETE HTTP method and set/volley the response
# File lib/answers/testing/controller_macros/methods.rb, line 25 def delete(action, options = {}) process_answers_action(action, 'DELETE', options) end
get(action, options = {})
click to toggle source
# File lib/answers/testing/controller_macros/methods.rb, line 5 def get(action, options = {}) process_answers_action(action, 'GET', options) end
patch(action, options = {})
click to toggle source
Executes a request simulating PATCH HTTP method and set/volley the response
# File lib/answers/testing/controller_macros/methods.rb, line 20 def patch(action, options = {}) process_answers_action(action, 'PATCH', options) end
post(action, options = {})
click to toggle source
Executes a request simulating POST HTTP method and set/volley the response
# File lib/answers/testing/controller_macros/methods.rb, line 10 def post(action, options = {}) process_answers_action(action, 'POST', options) end
put(action, options = {})
click to toggle source
Executes a request simulating PUT HTTP method and set/volley the response
# File lib/answers/testing/controller_macros/methods.rb, line 15 def put(action, options = {}) process_answers_action(action, 'PUT', options) end
Private Instance Methods
process_answers_action(action, http_method = 'GET', options)
click to toggle source
# File lib/answers/testing/controller_macros/methods.rb, line 31 def process_answers_action(action, http_method = 'GET', options) process(action, http_method, options.merge(:use_route => :answers)) end