Sha256: 866bccccdcbfb4ca37b5ab464cc5ef305b986db9af7f61ba8082f21d09694205

Contents?: true

Size: 1.3 KB

Versions: 60

Compression:

Stored size: 1.3 KB

Contents

Story: Spec and test together

  As an RSpec adopter with existing Test::Unit tests
  I want to run a few specs alongside my existing Test::Unit tests
  So that I can experience a smooth, gradual migration path

  Scenario: Run with ruby
    Given the file test/spec_and_test_together.rb

    When I run it with the ruby interpreter -fs

    Then the exit code should be 256
    And the stdout should match "ATest"
    And the stdout should match "Test::Unit::AssertionFailedError in 'An Example should fail with assert'"
    And the stdout should match "'An Example should fail with should' FAILED"
    And the stdout should match "10 examples, 6 failures"
    And the stdout should match /expected: 40,\s*got: 4/m
    And the stdout should match /expected: 50,\s*got: 5/m
  Scenario: Run with spec
    Given the file test/spec_and_test_together.rb

    When I run it with the spec script -fs

    Then the exit code should be 256
    Ands the stdout should match "ATest"
    And the stdout should match "Test::Unit::AssertionFailedError in 'An Example should fail with assert'"
    And the stdout should match "'An Example should fail with should' FAILED"
    And the stdout should match "10 examples, 6 failures"
    And the stdout should match /expected: 40,\s*got: 4/m
    And the stdout should match /expected: 50,\s*got: 5/m

Version data entries

60 entries across 60 versions & 10 rubygems

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