test/integration/integration_test_base.rb in filum-2.1.0 vs test/integration/integration_test_base.rb in filum-2.2.0
- old
+ new
@@ -44,7 +44,17 @@
expected_file = 'integration_test_...'
expected_line = __LINE__+1
Filum.logger.info "Foobar"
assert_logged(/#{expected_file}:#{expected_line}/)
end
+
+ def test_log_timings
+ expected_file = 'integration_test_...'
+ Filum.logger.start_timing 'Foo'
+ Filum.logger.end_timing 'Foo'
+
+ assert_logged(/Started timing for Foo/)
+ assert_logged(/Stopped timing for Foo/)
+ end
+
end
end