Sha256: 0b19d81ba613efb1f79cd548845a69c6146e3afd4391423216a92a337a4969ae

Contents?: true

Size: 1.34 KB

Versions: 13

Compression:

Stored size: 1.34 KB

Contents

Feature: 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 ../../resources/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 ../../resources/test/spec_and_test_together.rb

    When I run it with the spec script -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

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
dchelimsky-rspec-1.1.11.2 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.11.3 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.11.4 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.11.5 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.11.6 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.11.7 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.12 features/interop/examples_and_tests_together.feature
rspec-1.1.12 features/interop/examples_and_tests_together.feature
spree-0.6.0 vendor/plugins/rspec/features/interop/examples_and_tests_together.feature
spree-0.7.1 vendor/plugins/rspec/features/interop/examples_and_tests_together.feature
spree-0.7.0 vendor/plugins/rspec/features/interop/examples_and_tests_together.feature
spree-0.8.0 vendor/plugins/rspec/features/interop/examples_and_tests_together.feature
spree-0.8.1 vendor/plugins/rspec/features/interop/examples_and_tests_together.feature