Sha256: bec13a69c827a01d0caebfe3160af223a8371c571c024118237c2b33454d30d3

Contents?: true

Size: 502 Bytes

Versions: 12

Compression:

Stored size: 502 Bytes

Contents

require 'spec_helper'

RSpec.describe Aruba::Platforms::UnixCommandString do
  let(:command_string) { described_class.new(base_command) }

  describe '#to_a' do
    context 'with a command with a path' do
      let(:base_command) { '/foo/bar' }
      it { expect(command_string.to_a).to eq [base_command] }
    end

    context 'with a command with a path containing spaces' do
      let(:base_command) { '/foo bar/baz' }
      it { expect(command_string.to_a).to eq [base_command] }
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
aruba-0.14.14 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.13 spec/aruba/platforms/unix_command_string_spec.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.12 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.11 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.10 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.9 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.8 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.7 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.6 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.5 spec/aruba/platforms/unix_command_string_spec.rb
aruba-0.14.4 spec/aruba/platforms/unix_command_string_spec.rb