spreewald 0.3.7 → 0.3.8
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.
@@ -3,6 +3,9 @@
|
|
3
3
|
module ToleranceForSeleniumSyncIssues
|
4
4
|
# This is similiar but not entirely the same as Capybara::Node::Base#wait_until or Capybara::Session#wait_until
|
5
5
|
def patiently(seconds=Capybara.default_wait_time, &block)
|
6
|
+
old_wait_time = Capybara.default_wait_time
|
7
|
+
# dont make nested wait_untils use up all the alloted time
|
8
|
+
Capybara.default_wait_time = 0 # for we are a jealous gem
|
6
9
|
if page.driver.wait?
|
7
10
|
start_time = Time.now
|
8
11
|
begin
|
@@ -16,6 +19,8 @@ module ToleranceForSeleniumSyncIssues
|
|
16
19
|
else
|
17
20
|
block.call
|
18
21
|
end
|
22
|
+
ensure
|
23
|
+
Capybara.default_wait_time = old_wait_time
|
19
24
|
end
|
20
25
|
end
|
21
26
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 8
|
10
|
+
version: 0.3.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Kraze
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-12-
|
18
|
+
date: 2012-12-14 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|