Sha256: d5a5834c48f60ce7b9262758ed260e41f13edc8f5fba634d1a39387a22279427
Contents?: true
Size: 366 Bytes
Versions: 3
Compression:
Stored size: 366 Bytes
Contents
require "spec_helper" module Ramesh describe Logger do let(:output) do double("output", puts: true) end let(:logger) do described_class.new(output) end describe "#info" do it "should flush message" do logger.info("message") expect(output).to have_received(:puts).with("message") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramesh-1.3.0 | spec/ramesh/logger_spec.rb |
ramesh-1.2.0 | spec/ramesh/logger_spec.rb |
ramesh-1.1.0 | spec/ramesh/logger_spec.rb |