Sha256: f2f615d01092936eef9ff1c68a05330eb9a8df60b9c13e4d0f4d3d6382e39141

Contents?: true

Size: 997 Bytes

Versions: 19

Compression:

Stored size: 997 Bytes

Contents

require "spec_helper"

describe "bundle install with deprecated features" do
  before :each do
    in_app_root
  end

  %w( only except disable_system_gems disable_rubygems
      clear_sources bundle_path bin_path ).each do |deprecated|

    it "reports that #{deprecated} is deprecated" do
      gemfile <<-G
        #{deprecated}
      G

      bundle :install
      out.should =~ /'#{deprecated}' has been removed/
      out.should =~ /See the README for more information/
    end

  end


  %w( require_as vendored_at only except ).each do |deprecated|

    it "reports that :#{deprecated} is deprecated" do
      gemfile <<-G
        gem "rack", :#{deprecated} => true
      G

      bundle :install
      out.should =~ /Please replace :#{deprecated}|The :#{deprecated} option is no longer supported/
    end

  end

  it "reports that --production is deprecated" do
    gemfile %{gem "rack"}
    bundle "install --production"
    out.should =~ /--production option is deprecated/
  end

end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
bundler-1.0.11 spec/install/deprecated_spec.rb
bundler-1.0.10 spec/install/deprecated_spec.rb
bundler-1.0.9 spec/install/deprecated_spec.rb
bundler-1.0.7 spec/install/deprecated_spec.rb
bundler-1.0.5 spec/install/deprecated_spec.rb
honkster-bundler-1.1.pre spec/install/deprecated_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/install/deprecated_spec.rb
bundler-1.0.3 spec/install/deprecated_spec.rb
bundler-1.0.2 spec/install/deprecated_spec.rb