Sha256: c5366b0b38f70d5201d00132e9813191f743a848b4cd077ccbc4f858c961d876

Contents?: true

Size: 1.69 KB

Versions: 1

Compression:

Stored size: 1.69 KB

Contents

Story: autogenerated docstrings

  As an RSpec user
  I want examples to generate their own names
  So that I can reduce duplication between example names and example code

  Scenario: run passing examples with ruby
    Given the file ../../examples/passing/autogenerated_docstrings_example.rb

    When I run it with the ruby interpreter -fs

    Then the stdout should match /should equal 5/
    And the stdout should match /should be < 5/
    And the stdout should match /should include "a"/
    And the stdout should match /should respond to \[:size\]/

  Scenario: run failing examples with ruby
    Given the file ../../examples/failing/failing_autogenerated_docstrings_example.rb

    When I run it with the ruby interpreter -fs

    Then the stdout should match /should equal 2/
    And the stdout should match /should be > 5/
    And the stdout should match /should include "b"/
    And the stdout should match /should not respond to \[:size\]/

  Scenario: run passing examples with spec
    Given the file ../../examples/passing/autogenerated_docstrings_example.rb

    When I run it with the spec script -fs

    Then the stdout should match /should equal 5/
    And the stdout should match /should be < 5/
    And the stdout should match /should include "a"/
    And the stdout should match /should respond to \[:size\]/

  Scenario: run failing examples with spec
    Given the file ../../examples/failing/failing_autogenerated_docstrings_example.rb

    When I run it with the spec script -fs

    Then the stdout should match /should equal 2/
    And the stdout should match /should be > 5/
    And the stdout should match /should include "b"/
    And the stdout should match /should not respond to \[:size\]/

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dchelimsky-rspec-1.1.11.1 stories/example_groups/autogenerated_docstrings