test/test_layout.rb in logging-2.0.0 vs test/test_layout.rb in logging-2.1.0

- old
+ new

@@ -109,8 +109,17 @@ def test_initializer assert_raise(ArgumentError) {::Logging::Layout.new :backtrace => 'foo'} end + def test_backtrace_accessors + assert @layout.backtrace? + + @layout.backtrace = :off + refute @layout.backtrace? + + @layout.backtrace = 'on' + assert_equal true, @layout.backtrace + end end # class TestLayout end # module TestLogging