Sha256: a8e9a41c7698e34d2ca2bc433642fd6d9db54871acc6020886f50733be92779a

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

Feature: Simple usage

    In order to improve my web file's typography
    As a web developer using typogruby
    I want to apply typogruby to a file

    Scenario: getting help
        When I run "typogruby -h"
        Then the output should contain "Usage: typogruby [options] filename [filename, ...]"
        And the exit status should be 0

    Scenario: getting the version number
        When I run "typogruby -v"
        Then the output should contain "Typogruby "

    Scenario: filtering a file
        Given a file named "input.html" with:
        """
        <p>"This IS a simple file!</p>
        """
        When I run "typogruby input.html"
        Then the output should contain exactly:
        """
        <p><span class="dquo">&#8220;</span>This <span class="caps">IS</span> a simple&nbsp;file!</p>
        """
        And the exit status should be 0

    Scenario: Writing output to a file
        Given a file named "input.html" with:
        """
        <p>"This IS a simple file!</p>
        """
        When I run "typogruby -o output.html input.html"
        Then the file "output.html" should contain exactly:
        """
        <p><span class="dquo">&#8220;</span>This <span class="caps">IS</span> a simple&nbsp;file!</p>
        """
        And the exit status should be 0

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
typogruby-1.0.11 features/simple.feature
typogruby-1.0.10 features/simple.feature
typogruby-1.0.9 features/simple.feature
typogruby-1.0.8 features/simple.feature