Sha256: c8d232ca24aeb80f43a3d4c473a5debf8d7c66d8124ba59b5389e60d36001b38

Contents?: true

Size: 284 Bytes

Versions: 38

Compression:

Stored size: 284 Bytes

Contents

require "spec_helper"

describe "Bundler.with_clean_env" do

  it "should reset and restore the environment" do
    gem_path = ENV['GEM_PATH']

    Bundler.with_clean_env do
      `echo $GEM_PATH`.strip.should_not == gem_path
    end

    ENV['GEM_PATH'].should == gem_path
  end

end

Version data entries

38 entries across 38 versions & 6 rubygems

Version Path
bundler-1.0.22 spec/runtime/with_clean_env_spec.rb
mpapis-bundler-1.0.21.1 spec/runtime/with_clean_env_spec.rb
mpapis-bundler-1.0.21 spec/runtime/with_clean_env_spec.rb
bundler-maglev--1.0.21 spec/runtime/with_clean_env_spec.rb
bundler-1.0.21 spec/runtime/with_clean_env_spec.rb
bundler-1.0.21.rc spec/runtime/with_clean_env_spec.rb
bundler-1.0.20 spec/runtime/with_clean_env_spec.rb
bundler-1.0.20.rc spec/runtime/with_clean_env_spec.rb
bundler-1.0.19.rc spec/runtime/with_clean_env_spec.rb
bundler-1.0.18 spec/runtime/with_clean_env_spec.rb
bundler-1.0.17 spec/runtime/with_clean_env_spec.rb
bundler-1.0.15 spec/runtime/with_clean_env_spec.rb
bundler-1.0.14 spec/runtime/with_clean_env_spec.rb
bundler-1.0.13 spec/runtime/with_clean_env_spec.rb
bundler-1.1.pre.2 spec/runtime/with_clean_env_spec.rb
bundler-1.0.12 spec/runtime/with_clean_env_spec.rb
bundler-1.0.11 spec/runtime/with_clean_env_spec.rb
bundler_package_git-1.1.pre.1 spec/runtime/with_clean_env_spec.rb
bundler-1.1.pre.1 spec/runtime/with_clean_env_spec.rb
bundler-1.0.10 spec/runtime/with_clean_env_spec.rb