Module: ProxyPacRb::Rspec::Helpers
- Defined in:
- lib/proxy_pac_rb/rspec/helpers.rb
Overview
Helpers for proxy.pac tests
Instance Method Summary collapse
Instance Method Details
#client_ip ⇒ Object
20 21 22 |
# File 'lib/proxy_pac_rb/rspec/helpers.rb', line 20 def client_ip '127.0.0.1' end |
#proxy_pac ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/proxy_pac_rb/rspec/helpers.rb', line 6 def proxy_pac file = ProxyPacRb::ProxyPacFile.new(source: _proxy_pac_source) _proxy_pac_loader.load(file) _proxy_pac_linter.lint(file) _proxy_pac_parser.parse(file) file end |
#root_path ⇒ Object
24 25 26 |
# File 'lib/proxy_pac_rb/rspec/helpers.rb', line 24 def root_path @root_path ||= Dir.getwd end |
#time ⇒ Object
16 17 18 |
# File 'lib/proxy_pac_rb/rspec/helpers.rb', line 16 def time '1970-01-01 00:00:00' end |