Class: ActionController::TestCase
- Defined in:
- lib/vanity/frameworks/rails.rb
Instance Method Summary collapse
-
#setup_controller_request_and_response ⇒ Object
Sets Vanity.context to the current controller, so you can do things like: experiment(:simple).chooses(:green).
- #setup_controller_request_and_response_without_vanity ⇒ Object
Instance Method Details
#setup_controller_request_and_response ⇒ Object
Sets Vanity.context to the current controller, so you can do things like:
experiment(:simple).chooses(:green)
209 210 211 212 |
# File 'lib/vanity/frameworks/rails.rb', line 209 def setup_controller_request_and_response setup_controller_request_and_response_without_vanity Vanity.context = @controller end |
#setup_controller_request_and_response_without_vanity ⇒ Object
206 |
# File 'lib/vanity/frameworks/rails.rb', line 206 alias :setup_controller_request_and_response_without_vanity :setup_controller_request_and_response |