Sha256: 640a9717e73c4080c68dbaf520d4596a2452734167e6e0e753861975fa873832

Contents?: true

Size: 1.67 KB

Versions: 11

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 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

11 entries across 11 versions & 3 rubygems

Version Path
dchelimsky-rspec-1.1.11.4 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.11.5 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.11.6 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.11.7 features/example_groups/autogenerated_docstrings.feature
dchelimsky-rspec-1.1.12 features/example_groups/autogenerated_docstrings.feature
rspec-1.1.12 features/example_groups/autogenerated_docstrings.feature
spree-0.6.0 vendor/plugins/rspec/features/example_groups/autogenerated_docstrings.feature
spree-0.7.1 vendor/plugins/rspec/features/example_groups/autogenerated_docstrings.feature
spree-0.7.0 vendor/plugins/rspec/features/example_groups/autogenerated_docstrings.feature
spree-0.8.0 vendor/plugins/rspec/features/example_groups/autogenerated_docstrings.feature
spree-0.8.1 vendor/plugins/rspec/features/example_groups/autogenerated_docstrings.feature