Sha256: 4497249d38174e0b1d09b5c5a9cda40960f1d00cbc6e736ca27e654dea64fcbb
Contents?: true
Size: 545 Bytes
Versions: 9
Compression:
Stored size: 545 Bytes
Contents
require "spec_helper" class Rails # mock Rails end describe UniformNotifier::RailsLogger do it "should not notify rails logger" do UniformNotifier::RailsLogger.out_of_channel_notify("notify rails logger").should be_nil end it "should notify rails logger" do logger = double("logger") Rails.should_receive(:logger).and_return(logger) logger.should_receive(:warn).with("notify rails logger") UniformNotifier.rails_logger = true UniformNotifier::RailsLogger.out_of_channel_notify("notify rails logger") end end
Version data entries
9 entries across 9 versions & 1 rubygems