Sha256: d78e6a4a8a6dbfcb582645167548041ed13d661efeaa12b7bdf9361fc28f525d

Contents?: true

Size: 651 Bytes

Versions: 60

Compression:

Stored size: 651 Bytes

Contents

require "spec_helper"

describe "bundle install for the first time with v1.0" do
  before :each do
    in_app_root

    gemfile <<-G
      source "file://#{gem_repo1}"
      gem "rack"
    G
  end

  it "removes lockfiles in 0.9 YAML format" do
    File.open("Gemfile.lock", "w"){|f| YAML.dump({}, f) }
    bundle :install
    expect(File.read("Gemfile.lock")).not_to match(/^---/)
  end

  it "removes env.rb if it exists" do
    bundled_app.join(".bundle").mkdir
    bundled_app.join(".bundle/environment.rb").open("w"){|f| f.write("raise 'nooo'") }
    bundle :install
    expect(bundled_app.join(".bundle/environment.rb")).not_to exist
  end

end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
bundler-1.7.15 spec/install/upgrade_spec.rb
bundler-1.7.14 spec/install/upgrade_spec.rb
bundler-1.7.13 spec/install/upgrade_spec.rb
bundler-1.7.12 spec/install/upgrade_spec.rb
bundler-1.7.11 spec/install/upgrade_spec.rb
bundler-1.7.10 spec/install/upgrade_spec.rb
bundler-1.7.9 spec/install/upgrade_spec.rb
bundler-1.7.8 spec/install/upgrade_spec.rb
bundler-1.7.7 spec/install/upgrade_spec.rb
bundler-1.7.6 spec/install/upgrade_spec.rb
bundler-1.6.9 spec/install/upgrade_spec.rb
bundler-1.7.5 spec/install/upgrade_spec.rb
bundler-1.6.8 spec/install/upgrade_spec.rb
bundler-1.7.4 spec/install/upgrade_spec.rb
bundler-1.6.7 spec/install/upgrade_spec.rb
bundler-1.7.3 spec/install/upgrade_spec.rb
bundler-1.6.6 spec/install/upgrade_spec.rb
bundler-1.7.2 spec/install/upgrade_spec.rb
bundler-1.7.1 spec/install/upgrade_spec.rb
bundler-1.7.1.pre.3 spec/install/upgrade_spec.rb