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
tuktuk-rails-0.0.10 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/json_formatter.feature
tuktuk-rails-0.0.9 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/json_formatter.feature
tuktuk-rails-0.0.8 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/json_formatter.feature
tuktuk-rails-0.0.7 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/json_formatter.feature
dxruby_rp5-0.0.2 spec/vendor/rspec-core-2.14.7/features/formatters/json_formatter.feature
dxruby_rp5-0.0.1 spec/vendor/rspec-core-2.14.7/features/formatters/json_formatter.feature
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/json_formatter.feature
rspec-core-2.99.0.beta1 features/formatters/json_formatter.feature
rspec-core-2.14.7 features/formatters/json_formatter.feature
rspec-core-2.14.6 features/formatters/json_formatter.feature
clickable_link-0.0.2 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.5/features/formatters/json_formatter.feature
syllable_counter-1.0.0 vendor/bundle/gems/rspec-core-2.14.5/features/formatters/json_formatter.feature
rspec-core-2.14.5 features/formatters/json_formatter.feature
rspec-core-2.14.4 features/formatters/json_formatter.feature
rspec-core-2.14.3 features/formatters/json_formatter.feature
rspec-core-2.14.2 features/formatters/json_formatter.feature
rspec-core-2.14.1 features/formatters/json_formatter.feature
rspec-core-2.14.0 features/formatters/json_formatter.feature
sshp-0.0.2 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/json_formatter.feature
sshp-0.0.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/json_formatter.feature