Sha256: 9f036da4cc41a4f456172eb3b4eb8a6d9707ff5c57428691e0ecfd23d09ba427

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 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:
      """ruby
      describe String do
        it "has a failing example" do
          expect("foo".reverse).to eq("ofo")
        end
      end
      """
    And a file named "integer_spec.rb" with:
      """ruby
      describe Integer do
        it "has a failing example" do
          expect(7 + 5).to eq(11)
        end
      end
      """
    When I run `rspec integer_spec.rb string_spec.rb`
    Then the backtrace-normalized output should contain:
      """
        1) Integer has a failing example
           Failure/Error: expect(7 + 5).to eq(11)
             
             expected: 11
                  got: 12
             
             (compared using ==)
           # ./integer_spec.rb:3
      """
    And the backtrace-normalized output should contain:
      """
        2) String has a failing example
           Failure/Error: expect("foo".reverse).to eq("ofo")
             
             expected: "ofo"
                  got: "oof"
             
             (compared using ==)
           # ./string_spec.rb:3
      """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-core-3.0.0.beta2 features/formatters/text_formatter.feature
rspec-core-3.0.0.beta1 features/formatters/text_formatter.feature