capybara-webkit 1.7.0 → 1.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 136473d447fe1a0b1d9f8885d80067fc93cbadf5
4
- data.tar.gz: 1e397271112f1be272c0db39caeb4f2ee34e4e3d
3
+ metadata.gz: 566254149a5185cfd460a795c9edf23810cfdb48
4
+ data.tar.gz: f946fd8c9f1909a1a60422670aa7fa23ebac9891
5
5
  SHA512:
6
- metadata.gz: cb3737cb219aef7fe7da7b9e3fd6ffdbcc52e6dc5ba3970edfa1186e209e6f93384e5ca210217a7ff6217c2d4803cc0f1dc1c51145af018627a46540c7ba0aa4
7
- data.tar.gz: 534a003c460631a0804ce7edc9972d6a1812e001a3b060398cf2641621c1435104055e628976b812d34996681e9485b0ec4252d9c41f8a6803251b0775423aca
6
+ metadata.gz: f5971a9411cc36517d4eb7ad8a8c3143c825e514fd1b53e394e9fbbacac9b3b227430ef434401992408b3d46200d9a0c184d02b2c7c94bfac9bbc1023df566b1
7
+ data.tar.gz: f48aee4ab47ed6400d34526d7a19ad7fdb74dc340e2d42165401b04780e5d32d445cb115f396da6dfab281dcdc6c7f01c2a0390b34dce4b3f43f5c610fb054df
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capybara-webkit (1.7.0)
4
+ capybara-webkit (1.7.1)
5
5
  capybara (>= 2.3.0, < 2.6.0)
6
6
  json
7
7
 
data/NEWS.md CHANGED
@@ -1,3 +1,7 @@
1
+ New for 1.7.1:
2
+
3
+ * Fix deprecation messages relating to default_wait_time
4
+
1
5
  New for 1.7.0:
2
6
 
3
7
  * Capybara 2.5 compatibility (except Node#send_keys)
data/README.md CHANGED
@@ -101,10 +101,10 @@ Capybara::Webkit.configure do |config|
101
101
  # Allow pages to make requests to any URL without issuing a warning.
102
102
  config.allow_unknown_urls
103
103
 
104
- # Allow a specifc domain without issuing a warning.
104
+ # Allow a specific domain without issuing a warning.
105
105
  config.allow_url("example.com")
106
106
 
107
- # Allow a specifc URL and path without issuing a warning.
107
+ # Allow a specific URL and path without issuing a warning.
108
108
  config.allow_url("example.com/some/path")
109
109
 
110
110
  # Wildcards are allowed in URL expressions.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- capybara-webkit (1.7.0)
4
+ capybara-webkit (1.7.1)
5
5
  capybara (>= 2.3.0, < 2.6.0)
6
6
  json
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- capybara-webkit (1.7.0)
4
+ capybara-webkit (1.7.1)
5
5
  capybara (>= 2.3.0, < 2.6.0)
6
6
  json
7
7
 
@@ -334,8 +334,12 @@ module Capybara::Webkit
334
334
  end.merge(original_text: options[:text])
335
335
  end
336
336
 
337
+ def default_wait_time
338
+ Capybara.respond_to?(:default_max_wait_time) ? Capybara.default_max_wait_time : Capybara.default_wait_time
339
+ end
340
+
337
341
  def find_modal(type, id, options)
338
- Timeout::timeout(options[:wait] || Capybara.default_wait_time) do
342
+ Timeout::timeout(options[:wait] || default_wait_time) do
339
343
  @browser.find_modal(id)
340
344
  end
341
345
  rescue ModalNotFound
@@ -1,7 +1,7 @@
1
1
  module Capybara
2
2
  module Driver
3
3
  class Webkit
4
- VERSION = "1.7.0".freeze
4
+ VERSION = "1.7.1".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -41,13 +41,12 @@ describe Capybara::Session do
41
41
  end
42
42
  end
43
43
 
44
- before do
45
- @default_wait_time = Capybara.default_wait_time
46
- Capybara.default_wait_time = 1
44
+ around do |example|
45
+ Capybara.using_wait_time(1) do
46
+ example.run
47
+ end
47
48
  end
48
49
 
49
- after { Capybara.default_wait_time = @default_wait_time }
50
-
51
50
  it "waits for a request to load" do
52
51
  subject.visit("/")
53
52
  subject.find_button("Submit").click
@@ -466,10 +465,9 @@ describe Capybara::Session do
466
465
 
467
466
  context "with wait time of 1 second" do
468
467
  around do |example|
469
- default_wait_time = Capybara.default_wait_time
470
- Capybara.default_wait_time = 1
471
- example.run
472
- Capybara.default_wait_time = default_wait_time
468
+ Capybara.using_wait_time(1) do
469
+ example.run
470
+ end
473
471
  end
474
472
 
475
473
  it "waits for an element to appear in the viewport when clicked" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-webkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2015-08-30 00:00:00.000000000 Z
16
+ date: 2015-09-24 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: capybara