Sha256: ab5f95b98f616d243be7ae7b7ca771cc1a470799470a25420ff5e217128275af

Contents?: true

Size: 1.54 KB

Versions: 29

Compression:

Stored size: 1.54 KB

Contents

Feature: Init proxy pac

  As a proxy administrator
  I want to start a new proxy.pac
  In order to save some time

  Scenario: Non-existing proxy.pac
    Given a proxy.pac named "proxy" does not exist
    When I successfully run `pprb init proxy_pac`
    Then the proxy.pac "proxy" should contain:
    """
    function FindProxyForURL(url, host) {
      return "DIRECT";
    }
    """

  Scenario: Existing proxy.pac
    Given a proxy.pac named "proxy" with:
    """
    function FindProxyForURL(url, host) {
      return "DIRECT";
    }
    """
    When I run `pprb init proxy_pac` interactively
    And I type "y"
    And I close the stdin stream
    Then the output should contain:
    """
    Overwrite
    """

  Scenario: Add skeleton rspec
    Given a proxy.pac named "proxy" does not exist
    When I successfully run `pprb init proxy_pac --test rspec`
    Then a file named "spec/spec_helper.rb" should exist
    Then a directory named "spec/support" should exist
    Then a file named "spec/support/aruba.rb" should exist
    Then a file named "spec/support/proxy_pac_rb.rb" should exist
    Then a file named "spec/support/rspec.rb" should exist
    Then a directory named "spec/support/shared_examples" should exist
    Then a directory named "spec/support/shared_contexts" should exist
    Then a directory named "spec/support/matchers" should exist

  Scenario: Add skeleton middleman
    Given a proxy.pac named "source/proxy" does not exist
    When I successfully run `pprb init proxy_pac --build middleman`
    Then a file named "source/proxy.pac" should exist

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
proxy_pac_rb-0.5.8 features/init_proxy_pac.feature
proxy_pac_rb-0.5.7 features/init_proxy_pac.feature
proxy_pac_rb-0.5.6 features/init_proxy_pac.feature
proxy_pac_rb-0.5.5 features/init_proxy_pac.feature
proxy_pac_rb-0.5.4 features/init_proxy_pac.feature
proxy_pac_rb-0.5.3 features/init_proxy_pac.feature
proxy_pac_rb-0.5.2 features/init_proxy_pac.feature
proxy_pac_rb-0.5.1 features/init_proxy_pac.feature
proxy_pac_rb-0.5.0 features/init_proxy_pac.feature