Sha256: fb07cf805f8bed5e38e1b1188d8ac102ef6cf00b28a1852225cc1b9f42f3df90

Contents?: true

Size: 1.66 KB

Versions: 54

Compression:

Stored size: 1.66 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/pure/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 ../../failing_examples/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/pure/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 ../../failing_examples/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

54 entries across 54 versions & 10 rubygems

Version Path
dchelimsky-rspec-1.1.10 stories/example_groups/autogenerated_docstrings
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings
mack-0.8.2 lib/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings
picolena-0.1.0 rails_plugins/rspec/stories/example_groups/autogenerated_docstrings
picolena-0.1.1 rails_plugins/rspec/stories/example_groups/autogenerated_docstrings
picolena-0.1.3 rails_plugins/rspec/stories/example_groups/autogenerated_docstrings
picolena-0.1.2 rails_plugins/rspec/stories/example_groups/autogenerated_docstrings
picolena-0.1.4 rails_plugins/rspec/stories/example_groups/autogenerated_docstrings
picolena-0.1.5 rails_plugins/rspec/stories/example_groups/autogenerated_docstrings
picolena-0.1.6 rails_plugins/rspec/stories/example_groups/autogenerated_docstrings