Sha256: 63887844d681cfcb4a561b8584afaaba990a5880474f8560575ee67fa66eaa90

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 Bytes

Contents

require File.expand_path('../test_helper', __FILE__)

describe "Backburner::Logger module" do
  include Backburner::Logger

  describe "for log method" do
    it "prints out to std out" do
      output = capture_stdout { log("foo") }
      assert_equal "foo\n", output
    end
  end # log

  describe "for log_error method" do
    it "prints out to std err" do
      output = capture_stdout { log_error("bar") }
      assert_equal "bar\n", output
    end
  end # log_error
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backburner-0.0.2 test/logger_test.rb
backburner-0.0.1 test/logger_test.rb