Class: ActionController::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/vanity/frameworks/rails.rb

Instance Method Summary collapse

Instance Method Details

#setup_controller_request_and_responseObject

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_vanityObject



206
# File 'lib/vanity/frameworks/rails.rb', line 206

alias :setup_controller_request_and_response_without_vanity :setup_controller_request_and_response