Sha256: df50c46cc5169ebd2ce9d7e05141996795d5703d43649a904d70c49f5e9db007
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Quandl::Logger::Outputs do let(:logger){ Quandl::Logger::Outputs } subject{ logger } [:info, :debug].each do |type| it "#{type} should puts 'hello #{type}' to $stdout" do $stdout.should_receive(:puts).with(%Q{hello #{type}\n}) subject.send(type, %Q{hello #{type}}) end end [:warn, :error, :fatal].each do |type| it "#{type} should puts 'hello #{type}' to $stderr" do $stderr.should_receive(:puts).with(%Q{hello #{type}\n}) subject.send(type, %Q{hello #{type}}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems