Sha256: 7757801590a146bb29d39288dbcb75626274f068e22338cee3b9d2152ead1d84

Contents?: true

Size: 464 Bytes

Versions: 16

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'

describe Jasmine::Formatters::ExitCode do
  subject(:formatter) { Jasmine::Formatters::ExitCode.new }

  it 'is successful with an overall status of "passed"' do
    formatter.done({
      'overallStatus' => 'passed'
    })
    expect(formatter).to be_succeeded
  end

  it 'is successful with any other overall status' do
    formatter.done({
      'overallStatus' => 'incomplete'
    })
    expect(formatter).not_to be_succeeded
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
jasmine-3.99.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.10.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.9.2 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.9.1 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.9.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.8.1 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.8.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.7.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.6.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.5.1 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.5.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.4.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.3.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.2.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.1.0 spec/lib/jasmine/formatters/exit_code_spec.rb
jasmine-3.0.0 spec/lib/jasmine/formatters/exit_code_spec.rb