swt 0.7-java → 0.8-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/swt/cucumber_patches.rb +33 -33
- data/lib/swt/cucumber_runner.rb +1 -1
- data/lib/swt/minimal.rb +1 -1
- metadata +1 -1
data/lib/swt/cucumber_patches.rb
CHANGED
@@ -1,33 +1,33 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
1
|
+
|
2
|
+
module Cucumber
|
3
|
+
module Ast
|
4
|
+
class StepInvocation #:nodoc:#
|
5
|
+
class << self
|
6
|
+
attr_accessor :wait_time
|
7
|
+
end
|
8
|
+
|
9
|
+
def invoke_with_swt(step_mother, options)
|
10
|
+
block = Swt::RRunnable.new { invoke_without_swt(step_mother, options) }
|
11
|
+
|
12
|
+
Swt.sync_exec(&block)
|
13
|
+
sleep ENV["SLOW_CUKES"].to_f if ENV["SLOW_CUKES"]
|
14
|
+
sleep(Cucumber::Ast::StepInvocation.wait_time || 0)
|
15
|
+
Cucumber::Ast::StepInvocation.wait_time = nil
|
16
|
+
end
|
17
|
+
|
18
|
+
alias_method :invoke_without_swt, :invoke
|
19
|
+
alias_method :invoke, :invoke_with_swt
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
module Cli
|
24
|
+
class Configuration
|
25
|
+
def require_dirs_with_redcar_plugins
|
26
|
+
require_dirs_without_redcar_plugins + Dir['plugins/*/features']
|
27
|
+
end
|
28
|
+
|
29
|
+
alias_method :require_dirs_without_redcar_plugins, :require_dirs
|
30
|
+
alias_method :require_dirs, :require_dirs_with_redcar_plugins
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/swt/cucumber_runner.rb
CHANGED
data/lib/swt/minimal.rb
CHANGED