Sha256: 6bf3cd05e1e2760032f00b3a8c2f41ee9ccb2da056dccd8bd40a1977f5858095

Contents?: true

Size: 501 Bytes

Versions: 22

Compression:

Stored size: 501 Bytes

Contents

require 'rspec/core/formatters/progress_formatter'

module Motionbox
  # essentially a monkey-patch to the ProgressBarFormatter, outputs 
  # '== #{example_proxy.description} ==' in the logs before each test.  makes it
  # easier to match up tests with the SQL they produce
  class LoggingProgressBarFormatter < RSpec::Core::Formatters::ProgressFormatter
    def example_started(example)
      ZK.logger.info(yellow("\n=====<([ #{example.full_description} ])>=====\n"))
      super
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
zk-1.4.2 spec/support/logging_progress_bar_formatter.rb
zk-1.4.1 spec/support/logging_progress_bar_formatter.rb
zk-1.4.0 spec/support/logging_progress_bar_formatter.rb
zk-1.3.1 spec/support/logging_progress_bar_formatter.rb
zk-1.3.0 spec/support/logging_progress_bar_formatter.rb
zk-1.2.0 spec/support/logging_progress_bar_formatter.rb
zk-1.1.1 spec/support/logging_progress_bar_formatter.rb
zk-1.1.0 spec/support/logging_progress_bar_formatter.rb
zk-1.0.0 spec/support/logging_progress_bar_formatter.rb
zk-1.0.0.rc.1 spec/support/logging_progress_bar_formatter.rb
zk-0.9.1 spec/support/logging_progress_bar_formatter.rb
zk-0.9.0 spec/support/logging_progress_bar_formatter.rb
zk-0.8.9 spec/support/logging_progress_bar_formatter.rb
zk-0.8.8 spec/support/logging_progress_bar_formatter.rb
zk-0.8.7 spec/support/logging_progress_bar_formatter.rb
zk-0.8.6 spec/support/logging_progress_bar_formatter.rb
zk-0.8.5 spec/support/logging_progress_bar_formatter.rb
zk-0.8.4 spec/support/logging_progress_bar_formatter.rb
zk-0.8.3 spec/support/logging_progress_bar_formatter.rb
zk-0.8.2 spec/support/logging_progress_bar_formatter.rb