Module: Cucumber::Distrib::Test

Defined in:
lib/cucumber/distrib/test.rb

Overview

Custom objects to represent core objects from workers on Leader for reporters. This is necessary because original objects are not Marshalable.

Defined Under Namespace

Classes: Case, HookStep, Step

Class Method Summary collapse

Class Method Details

.adapt_test_step(test_step) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/cucumber/distrib/test.rb', line 6

def self.adapt_test_step(test_step)
  if test_step.is_a?(Cucumber::Core::Test::HookStep)
    Cucumber::Distrib::Test::HookStep.new(test_step)
  else
    Cucumber::Distrib::Test::Step.new(test_step)
  end
end