Sha256: d0da019ef7aee5dc97eb1edbd373836d8faa5bf59e13bba87763ecd3e202507d

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 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
        expect_add(2, "foo! {}", :application => "foo_app")
        @logger.add(Logger::FATAL, "foo!", {})
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
termite-0.0.20 test/termite_subclass_test.rb