Class: TestRedirectController
Instance Method Summary
collapse
attach_websocket!, #css, #extract_params, #handle_websocket, #headers, #image, #initialize, #js, #params, #render_template, #response_with, #websocket, #websocket_connections
included
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
|