Sha256: 29011e0534bea04c8a4599ce2cec99ce39ecddf17176c400f358485116597295

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

require 'spec_helper'

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

describe do
  before do
    ENV['LANG'] = 'C'
    set :env, 'LANG' => 'ja_JP.UTF-8'
  end
  let(:lang) { 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

1 entries across 1 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta10 spec/backend/exec/env_spec.rb