require 'spec_helper'

describe Terrestrial::Cli::SimulatorLauncher::LaunchArgsBuilder do

  Builder = Terrestrial::Cli::SimulatorLauncher::LaunchArgsBuilder

  it 'joins arguments together into a string' do
    expect(Builder.build({
      'Foo' => 'bar',
      'Fizz' => 'Buz'
    })).to eq '-Foo "bar" -Fizz "Buz"'
  end

  it 'does converts booleans to unescaped YES and NO' do
    expect(Builder.build({
      'Foo' => 'bar',
      'Fizz' => true,
      'Chuck' => false,
    })).to eq '-Foo "bar" -Fizz YES -Chuck NO'
  end
end

require 'spec_helper'

describe Terrestrial::Cli::SimulatorLauncher::LaunchArgsBuilder do

  LaunchArgsBuilder = Terrestrial::Cli::SimulatorLauncher::LaunchArgsBuilder

  it 'joins arguments together into a string' do
    expect(LaunchArgsBuilder.build({
      'Foo' => 'bar',
      'Fizz' => 'Buz'
    })).to eq '-Foo "bar" -Fizz "Buz"'
  end

  it 'does converts booleans to unescaped YES and NO' do
    expect(LaunchArgsBuilder.build({
      'Foo' => 'bar',
      'Fizz' => true,
      'Chuck' => false,
    })).to eq '-Foo "bar" -Fizz YES -Chuck NO'
  end
end

Test was populating global namespace and clashing
Test was populating global namespace and clashing
