Sha256: d70aa07cca9c1c64e5003e2331c3d1285e31638cac7c10167a4fc9848c693097

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

require 'spec_helper'

describe SPACEX do
  context 'CompanyInfo', vcr: { cassette_name: 'company_info/info' } do
    subject do
      SPACEX::CompanyInfo.info
    end
    it 'returns company info' do
      expect(subject.name).to eq 'SpaceX'
      expect(subject.founder).to eq 'Elon Musk'
      expect(subject.founded).to eq 2002
      expect(subject.employees).to eq 7000
      expect(subject.vehicles).to eq 3
      expect(subject.launche_sites).to eq nil
      expect(subject.test_sites).to eq 1
      expect(subject.ceo).to eq 'Elon Musk'
      expect(subject.cto).to eq 'Elon Musk'
      expect(subject.coo).to eq 'Gwynne Shotwell'
      expect(subject.cto_propulsion).to eq 'Tom Mueller'
      expect(subject.valuation).to eq 27_500_000_000
      expect(subject.headquarters.address).to eq 'Rocket Road'
      expect(subject.headquarters.city).to eq 'Hawthorne'
      expect(subject.headquarters.state).to eq 'California'
      expect(subject.summary).to eq 'SpaceX designs, manufactures and launches advanced rockets and spacecraft. The company was founded in 2002 to revolutionize space technology, with the ultimate goal of enabling people to live on other planets.'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spacex-0.0.7 spec/spacex/company_info_spec.rb