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