wist 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdda88467ab54634c82e788ac51d6774f88dae19
4
- data.tar.gz: 114883e8c70fff363c86299594441aa121b5f91a
3
+ metadata.gz: b6150ba5406034ca7dede15c09f857706842af71
4
+ data.tar.gz: e56f65705c2f4b1b02c794fcc1b9430e145c70aa
5
5
  SHA512:
6
- metadata.gz: a030fa182e338211a406bcee23c62cdfb98cf4f7be574a2837a6c1dcf7a6a66c941abb4ee530b2af7107951768f35e6e237468ca9cf103b8fb73291fcd59fdfd
7
- data.tar.gz: b655cd8d1c2ac5ae8954342489e25f5332250f0d8571b05f8e314838eea8546b2a828686b1c4d7db53287ccafdf2c654bc1ad263a563990e36ce9172561b42bb
6
+ metadata.gz: 7044443c1ce69637a1e89669076fc480251bcca91d781ac6d853b7dfdebb93389eacc89407d5070f43e3f57aa8d6c1a8015e9dbe747b6363ba06428a33b5c3e2
7
+ data.tar.gz: ced3cb4464579bc5a8be74f527a6f42e904fb29cb32ac3a20b09e817a156b2c1dfd9100dd586862e2c494600a483aee8246d96d6b8508297a32db5c893b14aaf
data/.gitignore CHANGED
@@ -1 +1 @@
1
- build
1
+ build/
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- wist (0.1.4)
12
+ wist (0.1.6)
13
13
  capybara
14
14
  selenium-webdriver
15
15
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
1
  wist
2
2
  ====
3
3
 
4
- Some capybara helper functions I use often. Right now only working with Test::Unit. If anyone else is interested I can write some more documentation and get it working with RSpec.
4
+ Capybara helper functions.
data/lib/wist.rb CHANGED
@@ -16,6 +16,9 @@ module Wist
16
16
  end
17
17
 
18
18
  def wait_until(timeout: Capybara.default_wait_time)
19
+ old_timeout = Capybara.default_wait_time
20
+ Capybara.default_wait_time = 0
21
+
19
22
  Selenium::WebDriver::Wait.new(timeout: timeout).until do
20
23
  begin
21
24
  yield
@@ -23,6 +26,8 @@ module Wist
23
26
  false
24
27
  end
25
28
  end
29
+
30
+ Capybara.default_wait_time = old_timeout
26
31
  end
27
32
 
28
33
  def click(selector)
@@ -25,6 +25,9 @@ class WistTest < CapybaraTestCase
25
25
  raise unless button.text == 'clicked'
26
26
  true
27
27
  end
28
+
29
+ # make sure default wait time is back to normal
30
+ assert_equal(2, Capybara.default_wait_time)
28
31
  end
29
32
 
30
33
  def test_verify_tweet_button
data/wist.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'wist'
3
- gem.version = '0.1.5'
3
+ gem.version = '0.1.6'
4
4
  gem.summary = 'capybara helpers'
5
5
  gem.author = 'Lihan Li'
6
6
  gem.email = 'frankieteardrop@gmail.com'
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.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lihan Li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-12 00:00:00.000000000 Z
11
+ date: 2014-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara