proxy_tester 0.1.0 → 0.1.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.
- data/Gemfile.lock +1 -1
- data/README.md +26 -0
- data/lib/proxy_tester/capybara_proxy_pac.rb +1 -1
- data/lib/proxy_tester/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -326,6 +326,32 @@ shared_examples 'a base proxy' do
|
|
326
326
|
end
|
327
327
|
```
|
328
328
|
|
329
|
+
### Examples
|
330
|
+
|
331
|
+
|
332
|
+
*Testing proxy pac*
|
333
|
+
```ruby
|
334
|
+
# encoding: utf-8
|
335
|
+
|
336
|
+
describe 'a proxy pac' do
|
337
|
+
before :each do
|
338
|
+
# no online activities are needed to
|
339
|
+
# parse proxy pac => set_offline true
|
340
|
+
set_offline true
|
341
|
+
|
342
|
+
subject { 'http://url/for/proxy.pac' }
|
343
|
+
end
|
344
|
+
|
345
|
+
it 'works with http://www.example.org' do
|
346
|
+
use_proxy :pac, subject
|
347
|
+
visit 'http://www.example.org'
|
348
|
+
expect(proxy_pac).to return_proxy('PROXY 127.0.0.1:3128')
|
349
|
+
end
|
350
|
+
end
|
351
|
+
```
|
352
|
+
|
353
|
+
|
354
|
+
|
329
355
|
### Helper methods
|
330
356
|
|
331
357
|
This gem includes all helper methods provided by
|
data/lib/proxy_tester/version.rb
CHANGED