Class: Specjour::RSpec::DistributedFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/specjour/rspec/distributed_formatter.rb

Instance Method Summary collapse

Instance Method Details

#closeObject



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

def close
  examples.clear
  super
end

#color_enabled?Boolean

Returns:

  • (Boolean)


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

def color_enabled?
  true
end

#dump_summary(*args) ⇒ Object



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

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

#metadata_for_examplesObject



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

#noop(*args) ⇒ Object 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