Sha256: d4488e3773e63bcdf497a20197b4504c7bd12a5edb1d1b92fd44f25743ef3964

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

module Opal::RSpec
  # a good compromise between not mucking with the code we're testing but making it more machine readable
  class SeparatorFormatter < ::RSpec::Core::Formatters::BaseFormatter
    ::RSpec::Core::Formatters.register self, :close
    SEP = "~~~SEPARATOR~~~"

    def close(_notification)
      output.puts # our dots will not have closed out with a CR
      output.puts SEP
      output.sync = true
      output.puts # Need a CR for popen to know we're done
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-rspec-0.6.2 spec/rspec/shared/opal/separator_formatter.rb