Sha256: 8e6ffafa68175012493e1b33d9b2e4e683a37f051384a54b02bcdeea9e95a7ef

Contents?: true

Size: 949 Bytes

Versions: 33

Compression:

Stored size: 949 Bytes

Contents

require "spec_helper"

describe "bundle install" do

  context "with duplicated gems" do
    it "will display a warning" do
      install_gemfile <<-G
        gem 'rails', '~> 4.0.0'
        gem 'rails', '~> 4.0.0'
      G
      expect(out).to include("more than once")
    end
  end

  context "with --gemfile" do
    it "finds the gemfile" do
      gemfile bundled_app("NotGemfile"), <<-G
        source "file://#{gem_repo1}"
        gem 'rack'
      G

      bundle :install, :gemfile => bundled_app("NotGemfile")

      ENV['BUNDLE_GEMFILE'] = "NotGemfile"
      should_be_installed "rack 1.0.0"
    end
  end

  context "with deprecated features" do
    before :each do
      in_app_root
    end

    it "reports that lib is an invalid option" do
      gemfile <<-G
        gem "rack", :lib => "rack"
      G

      bundle :install
      expect(out).to match(/You passed :lib as an option for gem 'rack', but it is invalid/)
    end
  end

end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
bundler-1.7.15 spec/install/gemfile_spec.rb
bundler-1.7.14 spec/install/gemfile_spec.rb
bundler-1.7.13 spec/install/gemfile_spec.rb
bundler-1.7.12 spec/install/gemfile_spec.rb
bundler-1.7.11 spec/install/gemfile_spec.rb
bundler-1.7.10 spec/install/gemfile_spec.rb
bundler-1.7.9 spec/install/gemfile_spec.rb
bundler-1.7.8 spec/install/gemfile_spec.rb
bundler-1.7.7 spec/install/gemfile_spec.rb
bundler-1.7.6 spec/install/gemfile_spec.rb
bundler-1.7.5 spec/install/gemfile_spec.rb
bundler-1.7.4 spec/install/gemfile_spec.rb
bundler-1.7.3 spec/install/gemfile_spec.rb
bundler-1.6.6 spec/install/gemfile_spec.rb
bundler-1.7.2 spec/install/gemfile_spec.rb
bundler-1.7.1 spec/install/gemfile_spec.rb
bundler-1.7.1.pre.3 spec/install/gemfile_spec.rb
bundler-1.7.1.pre.2 spec/install/gemfile_spec.rb
bundler-1.7.1.pre spec/install/gemfile_spec.rb
bundler-1.7.0 spec/install/gemfile_spec.rb