Sha256: 9c8c0347db8647d2453ade963e70ffce80c039106ec87a7b5b7391be6547a14e

Contents?: true

Size: 1.34 KB

Versions: 15

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

15 entries across 15 versions & 4 rubygems

Version Path
dchelimsky-rspec-1.1.99.1 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.13 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.2 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.3 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.4 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.5 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.6 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.7 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.8 features/interop/examples_and_tests_together.feature
dchelimsky-rspec-1.1.99.9 features/interop/examples_and_tests_together.feature
newbamboo-evented-rspec-1.1.12 features/interop/examples_and_tests_together.feature
newbamboo-rspec-1.1.12 features/interop/examples_and_tests_together.feature
rspec-1.2.2 features/interop/examples_and_tests_together.feature
rspec-1.2.1 features/interop/examples_and_tests_together.feature
rspec-1.2.0 features/interop/examples_and_tests_together.feature