Sha256: 388fc0a22125ffc2ad8dea3e81ef584191fab7c6f8b8c1424972701d08b0062e

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

@issue
Feature: Issue #44 Shell-like comments are removed in Multiline Args

  As I user
  I want that multiline arguments (docstrings) contents are preserved.

  Background: Test Setup
    Given a new working directory
    And   a file named "features/steps/steps.py" with:
      """
      from behave import given, when, then
      from hamcrest import assert_that, equal_to

      @given(u'a multiline text argument with')
      def step(context):
          context.expected_text = context.text

      @then(u'the multiline text argument should be')
      def step(context):
          assert_that(context.text, equal_to(context.expected_text))
      """

  Scenario: Ensure shell comment lines are not filtered out in multiline text
    Given a file named "features/issue44_test.feature" with:
      '''
      Feature: Multiline text with shell comment lines
        Scenario:
          Given a multiline text argument with:
            """
            Lorem ipsum.
            # THIS IS A SHELL COMMENT.
            Ipsum lorem.
            """
          Then the multiline text argument should be:
            """
            Lorem ipsum.
            # THIS IS A SHELL COMMENT.
            Ipsum lorem.
            """
      '''
    When I run "behave -c -f pretty features/issue44_test.feature"
    Then it should pass
    And  the command output should contain:
        """
        # THIS IS A SHELL COMMENT.
        """
    But  the command output should not contain:
        """
        Lorem ipsum.
        Ipsum lorem.
        """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
busser-behave-0.1.3 vendor/behave/issue.features/issue0044.feature