jnicklas/turnip

View on GitHub
examples/interpolation.feature

Summary

Maintainability
Test Coverage
Feature: A simple feature
  Scenario: Interpolation with quotes
    Given there is a monster called "John Smith"
    Then it should be called "John Smith"

  Scenario: Interpolation with empty quotes
    Given there is a monster called "John Smith"
    When I change its name to ""
    Then it should be nameless

  Scenario: Interpolation without quotes
    Given there is a monster called John
    Then it should be called "John"

  Scenario: Interpolation with mixed quotes
    Given there is a monster called "O'Flannahan"
    Then it should be called "O'Flannahan"

  Scenario: Interpolation with customer regexp
    Given there are 3 monkeys with blue hair
    Then there should be 3 monkeys with blue hair