transactional_capybara 0.0.1 → 0.1.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -1
- data/lib/transactional_capybara/ajax_helpers.rb +11 -0
- data/lib/transactional_capybara/version.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -10,6 +10,13 @@ module TransactionalCapybara
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def finished_all_ajax_requests?
|
13
|
+
capybara_sessions.all? do |session|
|
14
|
+
puts session.inspect
|
15
|
+
PageWaiting.new(session).finished_ajax_requests?
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def finished_ajax_requests?
|
13
20
|
(
|
14
21
|
angular_requests
|
15
22
|
+ jquery_requests
|
@@ -24,6 +31,10 @@ module TransactionalCapybara
|
|
24
31
|
end
|
25
32
|
end
|
26
33
|
|
34
|
+
def capybara_sessions
|
35
|
+
Capybara.send :session_pool
|
36
|
+
end
|
37
|
+
|
27
38
|
private
|
28
39
|
def run_js(expr)
|
29
40
|
@page.execute_script(expr)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transactional_capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0.pre.1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ian Young
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
12
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -77,9 +77,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
80
|
-
- - ! '
|
80
|
+
- - ! '>'
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.3.1
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
85
|
rubygems_version: 1.8.23
|