Class: Cucumber::Ast::StepInvocation
- Inherits:
-
Object
- Object
- Cucumber::Ast::StepInvocation
- Defined in:
- lib/swt/cucumber_patches.rb
Overview
:nodoc:#
Class Attribute Summary collapse
-
.wait_time ⇒ Object
Returns the value of attribute wait_time.
Instance Method Summary collapse
- #invoke_with_swt(step_mother, options) ⇒ Object (also: #invoke)
Class Attribute Details
.wait_time ⇒ Object
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, ) block = Swt::RRunnable.new { invoke_without_swt(step_mother, ) } 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 |