Sha256: e925d5539358e887bf8a95e7380aa6ae7ce6e58be42fc81ac30273262e710d0e

Contents?: true

Size: 624 Bytes

Versions: 10

Compression:

Stored size: 624 Bytes

Contents

require 'spec_helper'

describe RocketFuel::OperatingSystem do
  context '10.10' do
    let(:minor) { '10.10' }
    let(:os) { RocketFuel::OperatingSystem.new('darwin', minor) }

    it 'has a name' do
      expect(os.name).to eq(:mac)
    end

    it 'has a version' do
      expect(os.version).to eq(minor)
    end

    it 'has a minor version' do
      expect(os.minor_version).to eq(minor)
    end
  end

  context '10.9' do
    let(:minor) { '10.9' }
    let(:os) { RocketFuel::OperatingSystem.new('darwin', minor + '.4') }

    it 'has a minor version' do
      expect(os.minor_version).to eq(minor)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rocket_fuel-0.2.0 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.1.0 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.0.8 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.0.7 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.0.6 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.0.5 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.0.4 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.0.3 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.0.2 spec/rocket_fuel/operating_system_spec.rb
rocket_fuel-0.0.1 spec/rocket_fuel/operating_system_spec.rb