Class: HelperTestCaseController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/test/rails/helper_test_case.rb

Overview

Stub controller for testing helpers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#requestObject

Returns the value of attribute request.



6
7
8
# File 'lib/test/rails/helper_test_case.rb', line 6

def request
  @request
end

#urlObject

Returns the value of attribute url.



8
9
10
# File 'lib/test/rails/helper_test_case.rb', line 8

def url
  @url
end

Instance Method Details

#rescue_action(e) ⇒ Object

Re-raise errors



13
14
15
# File 'lib/test/rails/helper_test_case.rb', line 13

def rescue_action(e)
  raise e
end