Class: Cucumber::Ast::StepInvocation

Inherits:
Object
  • Object
show all
Defined in:
lib/swt/cucumber_patches.rb

Overview

:nodoc:#

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.wait_timeObject

Returns the value of attribute wait_time.



6
7
8
# File 'lib/swt/cucumber_patches.rb', line 6

def wait_time
  @wait_time
end

Instance Method Details

#invoke_with_swt(step_mother, options) ⇒ Object Also known as: invoke



9
10
11
12
13
14
15
16
# File 'lib/swt/cucumber_patches.rb', line 9

def invoke_with_swt(step_mother, options)
  block = Swt::RRunnable.new { invoke_without_swt(step_mother, options) }

  Swt.sync_exec(&block)
  sleep ENV["SLOW_CUKES"].to_f if ENV["SLOW_CUKES"]
  sleep(Cucumber::Ast::StepInvocation.wait_time || 0)
  Cucumber::Ast::StepInvocation.wait_time = nil
end