Sha256: 0fef487ba02fd0e588f459404f6778d0fe6bc0ddd6c7246a60df0d4663824792

Contents?: true

Size: 1.26 KB

Versions: 51

Compression:

Stored size: 1.26 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
          "foo".reverse.should eq("ofo")
        end
      end
      """
    And a file named "integer_spec.rb" with:
      """ruby
      describe Integer do
        it "has a failing example" do
          (7 + 5).should 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: (7 + 5).should 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: "foo".reverse.should eq("ofo")
             
             expected: "ofo"
                  got: "oof"
             
             (compared using ==)
           # ./string_spec.rb:3
      """

Version data entries

51 entries across 51 versions & 13 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-core-2.14.8/features/formatters/text_formatter.feature
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-core-2.13.0/features/formatters/text_formatter.feature
rspec-core-2.99.2 features/formatters/text_formatter.feature
dxruby_rp5-0.0.4 spec/vendor/rspec-core-2.14.7/features/formatters/text_formatter.feature
rspec-core-2.99.1 features/formatters/text_formatter.feature
rspec-core-2.99.0 features/formatters/text_formatter.feature
rspec-core-2.99.0.rc1 features/formatters/text_formatter.feature
rspec-core-2.14.8 features/formatters/text_formatter.feature
rspec-core-2.99.0.beta2 features/formatters/text_formatter.feature
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rspec-core-2.14.7/features/formatters/text_formatter.feature
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/text_formatter.feature
dxruby_rp5-0.0.3 spec/vendor/rspec-core-2.14.7/features/formatters/text_formatter.feature