test/examples/logger_stub_test.rb in vigetlabs-loggable-0.2.0 vs test/examples/logger_stub_test.rb in vigetlabs-loggable-0.3.0
- old
+ new
@@ -1,15 +1,15 @@
require File.dirname(__FILE__) + '/../test_helper'
-describe "LoggerStub" do
-
- before(:each) do
- @logger = LoggerStub.new
- end
-
- it "should return nil for all standard logging methods" do
- [:debug, :error, :fatal, :info, :warn].each do |method|
- @logger.send(method).should.be.nil
+class LoggerStubTest < Test::Unit::TestCase
+ context "An instance of the LoggerStub class" do
+
+ setup { @logger = LoggerStub.new }
+
+ should "return nil for all standard logging methods" do
+ [:debug, :error, :fatal, :info, :warn].each do |method|
+ @logger.send(method, 'message').should be(nil)
+ end
end
+
end
-
end
\ No newline at end of file