Class: Specjour::RSpec::DistributedFormatter

Inherits:
RSpec::Core::Formatters::ProgressFormatter
  • Object
show all
Defined in:
lib/specjour/rspec/distributed_formatter.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) close



33
34
35
36
# File 'lib/specjour/rspec/distributed_formatter.rb', line 33

def close
  examples.clear
  super
end

- (Boolean) color_enabled?

Returns:

  • (Boolean)


25
26
27
# File 'lib/specjour/rspec/distributed_formatter.rb', line 25

def color_enabled?
  true
end

- (Object) dump_summary(*args)



29
30
31
# File 'lib/specjour/rspec/distributed_formatter.rb', line 29

def dump_summary(*args)
  output.send_message :rspec_summary=, 
end

- (Object) metadata_for_examples



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/specjour/rspec/distributed_formatter.rb', line 4

def 
  examples.map do |example|
     = example.
    {
      :execution_result => marshalable_execution_result(example.execution_result),
      :description      => [:description],
      :file_path        => [:file_path],
      :full_description => [:full_description],
      :line_number      => [:line_number],
      :location         => [:location]
    }
  end
end

- (Object) noop(*args) Also known as: dump_pending, dump_failures, start_dump, message



18
19
# File 'lib/specjour/rspec/distributed_formatter.rb', line 18

def noop(*args)
end