wist 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/wist.rb +5 -2
- data/wist.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c370b625a15f8f6afbdfb14fc5f30dc580bd27c
|
4
|
+
data.tar.gz: dd781fd9a951314e8d8ad1f8bac9d1a7807a0648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abfe05c4100a3dea36b3fe706ae7aa93ec2895ad276f9a9273fb0cbbed15829265070d91fc3db5de7ad9fb6101d93a54439978a80c64c376eb9c77f1acfe6365
|
7
|
+
data.tar.gz: 41100526e16041085290d7f20bd865ea0e8bbbf777ccec7f03f923c8ca5031921ef4a4fc8914bc22e66b61b242c7772a70dbbc95a4363d12a0b595c4abeb7780
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
wist (0.2.
|
4
|
+
wist (0.2.7)
|
5
5
|
capybara
|
6
6
|
selenium-webdriver
|
7
7
|
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
ffi (~> 1.0, >= 1.0.11)
|
21
21
|
cliver (0.3.2)
|
22
22
|
coderay (1.0.9)
|
23
|
-
ffi (1.9.
|
23
|
+
ffi (1.9.8)
|
24
24
|
method_source (0.8.2)
|
25
25
|
mime-types (2.4.3)
|
26
26
|
mini_portile (0.6.2)
|
data/lib/wist.rb
CHANGED
@@ -80,7 +80,10 @@ module Wist
|
|
80
80
|
def alert_accept(expected_msg = false)
|
81
81
|
page.execute_script "window.alert = function(msg) { window.lastAlertMsg = msg; }"
|
82
82
|
yield
|
83
|
-
|
83
|
+
|
84
|
+
wait_until do
|
85
|
+
get_js('window.lastAlertMsg') == expected_msg
|
86
|
+
end if expected_msg
|
84
87
|
end
|
85
88
|
|
86
89
|
def get_js(code)
|
@@ -207,4 +210,4 @@ module Wist
|
|
207
210
|
def assert_el_has_link(selector, link)
|
208
211
|
wist_assert(get_js("$('#{selector}').attr('href')"), link)
|
209
212
|
end
|
210
|
-
end
|
213
|
+
end
|
data/wist.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'wist'
|
3
|
-
gem.version = '0.2.
|
3
|
+
gem.version = '0.2.7'
|
4
4
|
gem.summary = 'capybara helpers'
|
5
5
|
gem.author = 'Lihan Li'
|
6
6
|
gem.email = 'frankieteardrop@gmail.com'
|
@@ -13,4 +13,4 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.files = `git ls-files`.split("\n")
|
14
14
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lihan Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|