Module: Refinery::Testing::ControllerMacros::Methods
- Defined in:
- lib/refinery/testing/controller_macros/methods.rb
Instance Method Summary collapse
-
#delete(action, parameters = nil, session = nil, flash = nil) ⇒ Object
Executes a request simulating DELETE HTTP method and set/volley the response.
- #get(action, parameters = nil, session = nil, flash = nil) ⇒ Object
-
#post(action, parameters = nil, session = nil, flash = nil) ⇒ Object
Executes a request simulating POST HTTP method and set/volley the response.
-
#put(action, parameters = nil, session = nil, flash = nil) ⇒ Object
Executes a request simulating PUT HTTP method and set/volley the response.
Instance Method Details
#delete(action, parameters = nil, session = nil, flash = nil) ⇒ Object
Executes a request simulating DELETE HTTP method and set/volley the response
20 21 22 |
# File 'lib/refinery/testing/controller_macros/methods.rb', line 20 def delete(action, parameters = nil, session = nil, flash = nil) process_refinery_action(action, parameters, session, flash, "DELETE") end |
#get(action, parameters = nil, session = nil, flash = nil) ⇒ Object
5 6 7 |
# File 'lib/refinery/testing/controller_macros/methods.rb', line 5 def get(action, parameters = nil, session = nil, flash = nil) process_refinery_action(action, parameters, session, flash, "GET") end |
#post(action, parameters = nil, session = nil, flash = nil) ⇒ Object
Executes a request simulating POST HTTP method and set/volley the response
10 11 12 |
# File 'lib/refinery/testing/controller_macros/methods.rb', line 10 def post(action, parameters = nil, session = nil, flash = nil) process_refinery_action(action, parameters, session, flash, "POST") end |
#put(action, parameters = nil, session = nil, flash = nil) ⇒ Object
Executes a request simulating PUT HTTP method and set/volley the response
15 16 17 |
# File 'lib/refinery/testing/controller_macros/methods.rb', line 15 def put(action, parameters = nil, session = nil, flash = nil) process_refinery_action(action, parameters, session, flash, "PUT") end |