Module: SimplyTestable::ActionControllerExtension::TestCase
- Defined in:
- lib/simply_testable/action_controller_extension/test_case.rb
Instance Method Summary collapse
Instance Method Details
#assert_layout(layout) ⇒ Object
13 14 15 16 |
# File 'lib/simply_testable/action_controller_extension/test_case.rb', line 13 def assert_layout(layout) layout = "layouts/#{layout}" unless layout.match(/^layouts/) assert_equal layout, @response.layout end |
#turn_https_off ⇒ Object
9 10 11 |
# File 'lib/simply_testable/action_controller_extension/test_case.rb', line 9 def turn_https_off @request.env['HTTPS'] = nil end |
#turn_https_on ⇒ Object
4 5 6 7 |
# File 'lib/simply_testable/action_controller_extension/test_case.rb', line 4 def turn_https_on @request.env['HTTPS'] = 'on' # @request.env['HTTP_X_FORWARDED_PROTO'] == 'https' end |