Class: TestRedirectController
- Inherits:
-
Rubee::BaseController
- Object
- Rubee::BaseController
- TestRedirectController
- Defined in:
- lib/tests/controllers/base_controller_test.rb
Constant Summary
Constants included from Rubee::AuthTokenable
Rubee::AuthTokenable::EXPIRE, Rubee::AuthTokenable::KEY
Instance Method Summary collapse
Methods inherited from Rubee::BaseController
attach_websocket!, #css, #extract_params, #handle_websocket, #headers, #image, #initialize, #js, #params, #render_template, #response_with, #websocket, #websocket_connections
Methods included from Rubee::Authorizable
Methods included from Rubee::AuthTokenable
Methods included from Rubee::Hookable
Constructor Details
This class inherits a constructor from Rubee::BaseController
Instance Method Details
#index ⇒ Object
12 13 14 |
# File 'lib/tests/controllers/base_controller_test.rb', line 12 def index response_with(type: :redirect, to: '/test') end |
#test ⇒ Object
16 17 18 |
# File 'lib/tests/controllers/base_controller_test.rb', line 16 def test response_with(type: :json, object: { ok: :ok }) end |
#test_me ⇒ Object
20 21 22 |
# File 'lib/tests/controllers/base_controller_test.rb', line 20 def test_me response_with(type: :json, object: { ok: :ok }) end |