wist 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/wist.rb +5 -2
  4. data/wist.gemspec +2 -2
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb0235c7168ac2bd0d0bc5c741326a2b89352369
4
- data.tar.gz: 1bd1d3788f70bfc7761cb168dd49ababc62544b5
3
+ metadata.gz: 6c370b625a15f8f6afbdfb14fc5f30dc580bd27c
4
+ data.tar.gz: dd781fd9a951314e8d8ad1f8bac9d1a7807a0648
5
5
  SHA512:
6
- metadata.gz: 52070d633534d45594a25e2e02d4ab1fd4875026c326cf9e64e06a530be1abdf6ab14024ae03c2358e586f0a1c8c4473e438df1f49e575a9b1f79595813a1981
7
- data.tar.gz: 83e60bab0ce9bb9c443c47c6f6889135f0d53a60fcbb06e76624300a5c695f83e35390791601c1db4aef2ab3d082fe6b9df93b93758313cc2bee470eedca82e6
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.6)
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.6)
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
- wist_assert(get_js('window.lastAlertMsg'), expected_msg) if expected_msg
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.6'
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.6
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-03-19 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara