Sha256: a6f7ede5e9db184a170419dce0cead409e615d63102aa95b332223a149645b00
Contents?: true
Size: 609 Bytes
Versions: 10
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' class Rails # mock Rails end RSpec.describe UniformNotifier::RailsLogger do it 'should not notify rails logger' do expect(UniformNotifier::RailsLogger.out_of_channel_notify(title: 'notify rails logger')).to be_nil end it 'should notify rails logger' do logger = double('logger') expect(Rails).to receive(:logger).and_return(logger) expect(logger).to receive(:warn).with('notify rails logger') UniformNotifier.rails_logger = true UniformNotifier::RailsLogger.out_of_channel_notify(title: 'notify rails logger') end end
Version data entries
10 entries across 10 versions & 1 rubygems