Sha256: 7d383a3cf8d9c36217fe21ad057b67721e070059d67c97c83d8fbb0d91c67a33

Contents?: true

Size: 415 Bytes

Versions: 129

Compression:

Stored size: 415 Bytes

Contents

require 'spec_helper'

set :backend, :exec

describe Specinfra.backend.run_command('echo $LANG').stdout.strip do
  it { should eq 'C' }
end

describe do
  before do
    set :backend, :exec

    ENV['LANG'] = 'C'
    set :env, :LANG => 'ja_JP.UTF-8'
  end
  let(:lang) { Specinfra.backend.run_command('echo $LANG').stdout.strip }
  it { expect(lang).to eq 'ja_JP.UTF-8' }
  it { expect(ENV['LANG']).to eq 'C' }
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
specinfra-2.91.0 spec/backend/exec/env_spec.rb
specinfra-2.90.1 spec/backend/exec/env_spec.rb
specinfra-2.90.0 spec/backend/exec/env_spec.rb
specinfra-2.89.0 spec/backend/exec/env_spec.rb
specinfra-2.88.2 spec/backend/exec/env_spec.rb
specinfra-2.88.1 spec/backend/exec/env_spec.rb
specinfra-2.88.0 spec/backend/exec/env_spec.rb
specinfra-2.87.2 spec/backend/exec/env_spec.rb
specinfra-2.87.1 spec/backend/exec/env_spec.rb
specinfra-2.87.0 spec/backend/exec/env_spec.rb
specinfra-2.86.0 spec/backend/exec/env_spec.rb
specinfra-2.85.1 spec/backend/exec/env_spec.rb
specinfra-2.85.0 spec/backend/exec/env_spec.rb
specinfra-2.84.1 spec/backend/exec/env_spec.rb
specinfra-2.84.0 spec/backend/exec/env_spec.rb
specinfra-2.83.4 spec/backend/exec/env_spec.rb
specinfra-2.83.3 spec/backend/exec/env_spec.rb
specinfra-2.83.2 spec/backend/exec/env_spec.rb
specinfra-2.83.1 spec/backend/exec/env_spec.rb
specinfra-2.83.0 spec/backend/exec/env_spec.rb