Sha256: a96c1fe8d0dae41a99fab966a800b25061fffa169a2470bc89bea091d63a6c40
Contents?: true
Size: 1005 Bytes
Versions: 37
Compression:
Stored size: 1005 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. require './app' if defined?(ActionController::Live) class UndeadController < ApplicationController RESPONSE_BODY = "<html><head></head><body>Brains!</body></html>" def brains render :inline => RESPONSE_BODY end end class LiveController < UndeadController include ActionController::Live end class ActionControllerLiveRumTest < RailsMultiverseTest include MultiverseHelpers JS_LOADER = "JS LOADER IN DA HOUSE" setup_and_teardown_agent(:js_agent_loader => JS_LOADER, :beacon => "beacon", :browser_key => "key") def test_rum_instrumentation_when_not_streaming get '/undead/brains' assert_includes(response.body, JS_LOADER) end def test_excludes_rum_instrumentation_when_streaming_with_action_controller_live get '/live/brains' assert_equal(LiveController::RESPONSE_BODY, response.body) end end end
Version data entries
37 entries across 37 versions & 2 rubygems