Sha256: 0c3d58491f5cffebe2fce3bfce46585e6f152e7db377c6915a74d31240ae0af5
Contents?: true
Size: 1.04 KB
Versions: 34
Compression:
Stored size: 1.04 KB
Contents
require "appsignal/integrations/resque_active_job" describe "Legacy Resque ActiveJob integration" do let(:err_stream) { std_stream } let(:stderr) { err_stream.read } let(:log_stream) { std_stream } let(:log) { log_contents(log_stream) } it "logs and prints a deprecation message on extend" do Appsignal.logger = test_logger(log_stream) capture_std_streams(std_stream, err_stream) do Class.new do include Appsignal::Integrations::ResqueActiveJobPlugin end end deprecation_message = "The AppSignal ResqueActiveJobPlugin is deprecated and does " \ "nothing on extend. In this version of the AppSignal Ruby gem " \ "the integration with Resque is automatic on all Resque workers. " \ "Please remove the following line from this file to remove this " \ "message: include Appsignal::Integrations::ResqueActiveJobPlugin\n" \ "#{__FILE__}:" expect(stderr).to include "appsignal WARNING: #{deprecation_message}" expect(log).to contains_log :warn, deprecation_message end end
Version data entries
34 entries across 34 versions & 1 rubygems