class Ekylibre::PluginSystem::Testing::SpecReporter
Public Instance Methods
record_print_status(test)
click to toggle source
# File lib/ekylibre/plugin_system/testing/spec_reporter.rb, line 10 def record_print_status(test) test_name = test.name.gsub(/^test_: /, 'test:') print_colored_status(test) print pad_test(test_name) print(format(' (%.2fs)', test.time)) unless test.time.nil? puts end
Private Instance Methods
pad_test(str)
click to toggle source
Calls superclass method
# File lib/ekylibre/plugin_system/testing/spec_reporter.rb, line 18 def pad_test(str) if ENV.key?('CI') super else pad(format("%-#{[TEST_SIZE, IO.console.winsize[1] - 15].max}s", str), TEST_PADDING) end end