test/unit/logging_tests.rb in deas-0.24.1 vs test/unit/logging_tests.rb in deas-0.25.0
- old
+ new
@@ -2,22 +2,22 @@
require 'test/support/fake_sinatra_call'
require 'deas/logging'
module Deas::Logging
- class BaseTests < Assert::Context
+ class UnitTests < Assert::Context
desc "Deas::Logging"
setup do
@app = FakeSinatraCall.new
end
subject{ Deas::Logging }
should have_imeths :middleware
end
- class VerboseLoggingTests < BaseTests
+ class VerboseLoggingTests < UnitTests
desc "Deas::VerboseLogging"
setup do
@middleware = Deas::VerboseLogging.new(@app)
end
subject{ @middleware }
@@ -28,11 +28,11 @@
assert_kind_of Deas::BaseLogging, subject
end
end
- class SummaryLoggingTests < BaseTests
+ class SummaryLoggingTests < UnitTests
desc "Deas::SummaryLogging"
setup do
@middleware = Deas::SummaryLogging.new(@app)
end
subject{ @middleware }
@@ -43,10 +43,10 @@
assert_kind_of Deas::BaseLogging, subject
end
end
- class SummaryLineTests < BaseTests
+ class SummaryLineTests < UnitTests
desc "Deas::SummaryLine"
subject{ Deas::SummaryLine }
should "output its attributes in a specific order" do
assert_equal %w{time status method path handler params redir}, subject.keys