proxy_rb 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +4 -0
- data/lib/proxy_rb/cucumber/steps.rb +16 -6
- data/lib/proxy_rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 594b3c6231ef198e86f5c96186bf3267b57c48a8
|
4
|
+
data.tar.gz: 49071a22acf7676f7262e05e8bdc15702533e7c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a7305a4755446b67a30a8ec2bde20da59d89d72aa0a94cfe161c0ba19cc5485a17a3c59a3d9d5782c588e1b203ede19e0d7aa6821d6a5372fcd0c35e7b31e39
|
7
|
+
data.tar.gz: a469f54857c7678a64b6ba6b4e518057665472306a3b64207f445a8e6732a9379376bc7539d67219e408e750d709ddc8ee9f3e518c4d5f39b7c6a990c6e78c55
|
data/History.md
CHANGED
@@ -4,6 +4,10 @@ Empty
|
|
4
4
|
|
5
5
|
# RELEASED
|
6
6
|
|
7
|
+
## [v0.10.2](https://github.com/fedux-org/proxy_rb/compare/v0.10.1...v0.10.2)
|
8
|
+
|
9
|
+
* Make it possible to visit pages and then check all of them
|
10
|
+
|
7
11
|
## [v0.10.1](https://github.com/fedux-org/proxy_rb/compare/v0.10.0...v0.10.1)
|
8
12
|
|
9
13
|
* Add support for password fetching for a particular step
|
@@ -25,19 +25,29 @@ Given(/^I use the following proxies:$/) do |table|
|
|
25
25
|
end
|
26
26
|
|
27
27
|
Then(/the following requests are( not)? allowed to pass the proxy:/) do |forbidden, table|
|
28
|
-
|
28
|
+
step 'I visit the following websites:', table
|
29
|
+
|
30
|
+
if forbidden
|
31
|
+
step 'all requests are not allowed to pass the proxy:'
|
32
|
+
else
|
33
|
+
step 'all requests are allowed to pass the proxy'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
Then(/all requests are( not)? allowed to pass the proxy/) do |forbidden|
|
38
|
+
results = []
|
29
39
|
|
30
40
|
proxies.each do |proxy|
|
31
|
-
|
32
|
-
visit
|
33
|
-
|
41
|
+
websites.each do |w|
|
42
|
+
visit w, proxy
|
43
|
+
results << page.dup
|
34
44
|
end
|
35
45
|
end
|
36
46
|
|
37
47
|
if forbidden
|
38
|
-
expect(
|
48
|
+
expect(results).to ProxyRb::Matchers.all be_forbidden
|
39
49
|
else
|
40
|
-
expect(
|
50
|
+
expect(results).to ProxyRb::Matchers.all be_successful
|
41
51
|
end
|
42
52
|
end
|
43
53
|
|
data/lib/proxy_rb/version.rb
CHANGED