Sha256: 268072c75ed07904f9cb9ff9207be8a15e17eeea7fb84612400cb5aa9db4e29b

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

require 'spec_helper'

describe BobTheHelper::Environment do

  it "let you modify the environment of a process" do
    env = { 'THIS_IS_A_LONG_VARIABLE' => 'hello_world' }

    env_modified = {}
    isolated_environment env do
      env_modified = ENV.to_hash
    end

    expect( env_modified['THIS_IS_A_LONG_VARIABLE'] ).to eq(env['THIS_IS_A_LONG_VARIABLE'] )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pointrb-0.1.2 spec/bob_the_helper/environment/environment_spec.rb
pointrb-0.1.1 spec/bob_the_helper/environment/environment_spec.rb
pointrb-0.1.0 spec/bob_the_helper/environment/environment_spec.rb