test/unit/adapter/rails_test.rb in loggr-1.0.0 vs test/unit/adapter/rails_test.rb in loggr-1.1.0
- old
+ new
@@ -15,24 +15,22 @@
def setup
Object.send(:remove_const, :Rails) if Object.const_defined?(:Rails)
Object.const_set(:Rails, ::MockRails)
@adapter = Loggr::Adapter::RailsAdapter.new
end
-
- include Loggr::Lint::Tests
-
+
def test_rails_should_be_a_rails_adapter
assert_kind_of Loggr::Adapter::RailsAdapter, Loggr::Adapter::Rails
end
-
+
def test_should_use_same_logger_as_rails
assert_equal ::Rails.logger, Loggr::Adapter::Rails.logger('log')
end
-
+
def test_should_default_to_rails_adapter
clazz = Class.new do
extend Loggr::Adapter
end
-
+
assert_equal Loggr::Adapter::Rails, clazz.adapter
end
end
\ No newline at end of file