Sha256: 0c1a76fe3212db0537f19a7f549bfeb31fda2b4745b4937a553726d554dbed8b

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

require File.join(File.dirname(__FILE__), "test_helper.rb")

class SubLogger < Termite::Logger
end

class TermiteSubclassTest < Scope::TestCase
  context "with subclassed termite" do
    setup do
      Ecology.reset

      set_up_ecology <<ECOLOGY_TEXT
{
  "application": "foo_app"
}
ECOLOGY_TEXT
    end

    context "and only default logging levels set" do
      setup do
        @logger = SubLogger.new
      end

      should "correctly send logs to Syslog" do
        @logger.socket.expects(:send)
        @logger.add(Logger::FATAL, "foo!", {})
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
termite-0.0.10 test/termite_subclass_test.rb