Sha256: bda2dbf7782dff89f62702a477a80b380918739e9b2a4ac9943eb2edcbb5b103
Contents?: true
Size: 871 Bytes
Versions: 3
Compression:
Stored size: 871 Bytes
Contents
module SpecTracker module Reporter module Terminal class Reporter < BaseReporter def initialize @ui_mapper = UIMapper.new end def print(report) terminal_table = ::Terminal::Table.new do |t| t.title = report.topic t.headings = [ SpecTracker.configuration.wording[:scenario_id], SpecTracker.configuration.wording[:scenario_name], SpecTracker.configuration.wording[:test_result] ] t.rows = ui_mapper.map(report) t.add_separator t.add_row [SpecTracker.configuration.wording[:progression], nil, "#{report.progression}%"] end terminal_table.align_column(2, :center) terminal_table.align_column(0, :center) puts terminal_table end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems