capybara-webmock 0.4.2 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara/webmock.rb +5 -3
- data/lib/capybara/webmock/version.rb +1 -1
- 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: a1511010285eeb520105986a627bf40f2957fcaa
|
4
|
+
data.tar.gz: a12bff84fc592bfb31774cd2c3eeb9d691d074f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6861262f85e84d138a83dca1c8152b601506cd702af8c58ca6cebf0b75b8c695953f53ae25338c43f253192f908bc72b2c52c31d7155f539cfed6eb400ae9799
|
7
|
+
data.tar.gz: af780a9538de5a69a5a1686d4b7b8c144f17d0939b6511dfc3912611d81734c43e143207724600d174c621fa70bd42eb6ed826383d44492169531f2346ae6fb1
|
data/lib/capybara/webmock.rb
CHANGED
@@ -34,8 +34,10 @@ module Capybara
|
|
34
34
|
profile
|
35
35
|
end
|
36
36
|
|
37
|
-
def
|
38
|
-
|
37
|
+
def chrome_options
|
38
|
+
::Selenium::WebDriver::Chrome::Options.new.tap do |options|
|
39
|
+
options.add_argument("--proxy-server=127.0.0.1:#{port_number}")
|
40
|
+
end
|
39
41
|
end
|
40
42
|
|
41
43
|
def phantomjs_options
|
@@ -52,7 +54,7 @@ Capybara.register_driver :capybara_webmock do |app|
|
|
52
54
|
end
|
53
55
|
|
54
56
|
Capybara.register_driver :capybara_webmock_chrome do |app|
|
55
|
-
Capybara::Selenium::Driver.new(app, browser: :chrome,
|
57
|
+
Capybara::Selenium::Driver.new(app, browser: :chrome, options: Capybara::Webmock.chrome_options)
|
56
58
|
end
|
57
59
|
|
58
60
|
Capybara.register_driver :capybara_webmock_poltergeist do |app|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-webmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Worth
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-06-
|
12
|
+
date: 2018-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capybara
|