Sha256: c8c0f110b2a259cf13fb4f0d4d6ad6f559e205616ec28dd54762e795396d91fa

Contents?: true

Size: 1.67 KB

Versions: 12

Compression:

Stored size: 1.67 KB

Contents

Feature: 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 command -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 command -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

12 entries across 12 versions & 3 rubygems

Version Path
dchelimsky-rspec-1.1.99.1 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.13 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.2 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.3 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.4 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.5 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.6 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.7 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.8 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.99.9 features/example_groups/autogenerated_docstrings.feature
newbamboo-evented-rspec-1.1.12 features/example_groups/autogenerated_docstrings.feature
newbamboo-rspec-1.1.12 features/example_groups/autogenerated_docstrings.feature