Sha256: f38e2110d1bc8fe65a26993cb5344c979171a06600b1e104ae6038c22a56791a

Contents?: true

Size: 1.01 KB

Versions: 51

Compression:

Stored size: 1.01 KB

Contents

Feature: JSON formatter

  Scenario: Formatting example names for retry
    Given a file named "various_spec.rb" with:
    """ruby
    describe "Various" do
      it "fails" do
        "fail".should eq("succeed")
      end

      it "succeeds" do
        "succeed".should eq("succeed")
      end

      it "pends"
    end
    """
    When I run `rspec various_spec.rb --format j`
    Then the output should contain all of these:
          |"summary_line":"3 examples, 1 failure, 1 pending"|
          |"examples":[                                     |
          |"description":"fails"                             |
          |"full_description":"Various fails"                |
          |"status":"failed"                                 |
          |"file_path":"./various_spec.rb"                   |
          |"line_number":2                                   |
          |"exception":{                                     |
          |"class":"RSpec::Expectations::ExpectationNotMetError"|

    And the exit status should be 1

Version data entries

51 entries across 51 versions & 13 rubygems

Version Path
rspec-core-2.14.0.rc1 features/formatters/json_formatter.feature
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/json_formatter.feature
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/json_formatter.feature
vagrant-actionio-0.0.9 vendor/bundle/gems/rspec-core-2.13.0/features/formatters/json_formatter.feature
rspec-core-2.13.1 features/formatters/json_formatter.feature
rspec-core-2.13.0 features/formatters/json_formatter.feature
remq-0.0.4 vendor/bundle/gems/rspec-core-2.12.2/features/formatters/json_formatter.feature
remq-0.0.3 vendor/bundle/gems/rspec-core-2.12.2/features/formatters/json_formatter.feature
rspec-core-2.12.2 features/formatters/json_formatter.feature
rspec-core-2.12.1 features/formatters/json_formatter.feature
rspec-core-2.12.0 features/formatters/json_formatter.feature