Sha256: df5eb3f26ce9afa40a179088b847cafd8076f5242c845519efef1ec71b95e5c6

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

Feature: author publishes article

  As an author
  I want to publish my article as a blog post
  So that the world can see it

  Scenario: using a shell publisher
    Given an article with the contents:
    """
    # :PUBLISHER: source, shell, { command: "quoter %f", select: '$SOURCE' }
    # :BRACKET_CODE: "<pre>", "</pre>"
    # :TEXT:
    # This is the text
    # :SAMPLE:
    def hello
      # ...
    end
    """
    When I run the command "germ publish source --debug " on the article
    Then the output should be as follows:
    """
    > # :PUBLISHER: source, shell, { command: "quoter %f", select: '$SOURCE' }
    > # :BRACKET_CODE: "<pre>", "</pre>"
    > # :TEXT:
    > # This is the text
    > # :SAMPLE:
    > def hello
    >   # ...
    > end
    """

  Scenario: using a shell publisher with a pipeline
    Given an article with the contents:
    """
    # :PROCESS: quote, "quoter %f"
    # :PUBLISHER: source, shell, { command: "quoter %f", pipeline: quote, select: '$SOURCE' }
    # :BRACKET_CODE: "<pre>", "</pre>"
    # :TEXT:
    # This is the text
    # :SAMPLE:
    def hello
      # ...
    end
    """
    When I run the command "germ publish source --debug " on the article
    Then the output should be as follows:
    """
    > > # :PROCESS: quote, "quoter %f"
    > > # :PUBLISHER: source, shell, { command: "quoter %f", pipeline: quote, select: '$SOURCE' }
    > > # :BRACKET_CODE: "<pre>", "</pre>"
    > > # :TEXT:
    > > # This is the text
    > > # :SAMPLE:
    > > def hello
    > >   # ...
    > > end
    """

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
devver-germinate-1.2.0 features/author-publishes-article.feature
germinate-1.2.0 features/author-publishes-article.feature