Sha256: d1ca37ed4683b6811768e5b5f9011293132ff885c34ca24339b22ee218cb83de

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

Feature: text formatter

  In order to easily see the result of running my specs
  As an RSpec user
  I want clear, concise, well-formatted output

  Scenario: Backtrace formatting for failing specs in multiple files
    Given a file named "string_spec.rb" with:
      """
      describe String do
        it "has a failing example" do
          "foo".reverse.should == "ofo"
        end
      end
      """
    And a file named "integer_spec.rb" with:
      """
      require 'rspec/autorun'

      describe Integer do
        it "has a failing example" do
          (7 + 5).should == 11
        end
      end
      """
    When I run `ruby ./integer_spec.rb ./string_spec.rb`
    Then the backtrace-normalized output should contain:
      """
      Failures:

        1) Integer has a failing example
           Failure/Error: (7 + 5).should == 11
             expected: 11
                  got: 12 (using ==)
           # ./integer_spec.rb:5

        2) String has a failing example
           Failure/Error: "foo".reverse.should == "ofo"
             expected: "ofo"
                  got: "oof" (using ==)
           # ./string_spec.rb:3
      """

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-core-2.6.4 features/formatters/text_formatter.feature
rspec-core-2.6.3 features/formatters/text_formatter.feature
rspec-core-2.6.3.beta1 features/formatters/text_formatter.feature
rspec-core-2.6.2.rc features/formatters/text_formatter.feature
rspec-core-2.6.0 features/formatters/text_formatter.feature