Sha256: 44d5f44afdf969bacff747ef0ae410eabb4aad7ff8c5abdb0c71c83c56fa64ca

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

module ActionController
  class TestCase
    alias :setup_controller_request_and_response_without_vanity :setup_controller_request_and_response
    # Sets Vanity.context to the current controller, so you can do things like:
    #   experiment(:simple).chooses(:green)
    def setup_controller_request_and_response
      setup_controller_request_and_response_without_vanity 
      Vanity.context = @controller
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
mikeg-vanity-1.3.0 lib/vanity/rails/testing.rb
vanity-1.2.0 lib/vanity/rails/testing.rb
vanity-1.1.1 lib/vanity/rails/testing.rb
vanity-1.1.0 lib/vanity/rails/testing.rb
vanity-1.0.0 lib/vanity/rails/testing.rb
vanity-0.4.0 lib/vanity/rails/testing.rb