Sha256: 4300b35c6d59f4066d2783cf49fea5c8c284aa88b92338d238a0eb01a9a7531c

Contents?: true

Size: 830 Bytes

Versions: 8

Compression:

Stored size: 830 Bytes

Contents

Feature: Honour working directory 
  Honour the working directory during testing
  In order to support helpers which work with the current directories

  Scenario: Set working directory for helpers in tests
    Given a fixture app "empty-app"
    And a file named "source/index.erb" with:
    """
    <%= Dir.getwd %>
    """
    And the Server is running
    When I go to "/index.html"
    Then I should see:
    """
    aruba
    """

  Scenario: Set working directory for config.rb in tests
    Given a fixture app "empty-app"
    And a file named "config.rb" with:
    """
    set :my_working_directory, Dir.getwd
    """
    And a file named "source/index.erb" with:
    """
    <%= my_working_directory %>
    """
    And the Server is running
    When I go to "/index.html"
    Then I should see:
    """
    aruba
    """

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
middleman-core-3.4.1 features/working_directory.feature
middleman-core-3.4.0 features/working_directory.feature
middleman-core-3.3.12 features/working_directory.feature
middleman-core-3.3.11 features/working_directory.feature
middleman-core-3.3.10 features/working_directory.feature
middleman-core-3.3.9 features/working_directory.feature
middleman-core-3.3.8 features/working_directory.feature
middleman-core-3.3.7 features/working_directory.feature